fix iconify with autoraise

This commit is contained in:
rathnor 2003-05-13 11:14:05 +00:00
parent 3b13063363
commit e7903086f2
3 changed files with 7 additions and 2 deletions

View file

@ -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)

View file

@ -22,7 +22,7 @@
// 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 @@ WinClient *BScreen::getLastFocusedWindow(int workspace) {
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

View file

@ -22,7 +22,7 @@
// 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 @@ void FluxboxWindow::iconify() {
(*it)->fbwindow()->iconify();
}
}
if (Fluxbox::instance()->getFocusedWindow() == this)
Fluxbox::instance()->revertFocus(screen());
}