don't change focus to a window that doesn't accept focus, see bug #1626114

This commit is contained in:
markt 2007-01-05 17:57:07 +00:00
parent 8930a711ee
commit 416cca0edd
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,8 @@
(Format: Year/Month/Day)
Changes for 1.0rc3:
*07/01/05:
* Don't change focus to a window that doesn't accept focus (Mark)
FocusControl.cc
* Only grab keybindings on screens managed by fluxbox (Mark)
fluxbox.hh Keys.cc/hh FbTk/KeyUtil.cc/hh
* Fix locale being applied to the clock. (Simon)

View file

@ -216,7 +216,8 @@ WinClient *FocusControl::lastFocusedWindow(int workspace) {
for (; it != it_end; ++it) {
if ((*it)->fbwindow() &&
((((int)(*it)->fbwindow()->workspaceNumber()) == workspace ||
(*it)->fbwindow()->isStuck()) && !(*it)->fbwindow()->isIconic()))
(*it)->fbwindow()->isStuck()) && (*it)->acceptsFocus() &&
!(*it)->fbwindow()->isIconic()))
return *it;
}
return 0;