fix iconify with autoraise
rathnor rathnor
3 files changed,
7 insertions(+),
2 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -1,6 +1,8 @@
(Format: Year/Month/Day) Changes for 0.9.3: *03/05/13: + * Fixed iconify problems when autoraise on (Simon) + Window.cc Screen.cc * Fixed restoring submenus after a reconfigure (Thanks MrChuoi) Screen.cc, fluxbox.cc/hh * Added auto hide menu item to toolbar menu (Thanks MrChuoi)
M
src/Screen.cc
→
src/Screen.cc
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.160 2003/05/13 00:23:05 fluxgen Exp $ +// $Id: Screen.cc,v 1.161 2003/05/13 11:14:04 rathnor Exp $ #include "Screen.hh"@@ -2491,6 +2491,7 @@ FocusedWindows::iterator it_end = focused_list.end();
for (; it != it_end; ++it) if ((*it)->fbwindow() && (((int)(*it)->fbwindow()->getWorkspaceNumber()) == workspace + && !(*it)->fbwindow()->isIconic() && (!(*it)->fbwindow()->isStuck() || (*it)->fbwindow()->isFocused()))) // only give focus to a stuck window if it is currently focused // otherwise they tend to override normal workspace focus
M
src/Window.cc
→
src/Window.cc
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.172 2003/05/11 23:44:08 rathnor Exp $ +// $Id: Window.cc,v 1.173 2003/05/13 11:14:05 rathnor Exp $ #include "Window.hh"@@ -1240,6 +1240,8 @@ if ((*it)->fbwindow())
(*it)->fbwindow()->iconify(); } } + if (Fluxbox::instance()->getFocusedWindow() == this) + Fluxbox::instance()->revertFocus(screen()); }