diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FocusControl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FocusControl.cc b/src/FocusControl.cc index f363f30..e0bb886 100644 --- a/src/FocusControl.cc +++ b/src/FocusControl.cc | |||
@@ -216,7 +216,8 @@ WinClient *FocusControl::lastFocusedWindow(int workspace) { | |||
216 | for (; it != it_end; ++it) { | 216 | for (; it != it_end; ++it) { |
217 | if ((*it)->fbwindow() && | 217 | if ((*it)->fbwindow() && |
218 | ((((int)(*it)->fbwindow()->workspaceNumber()) == workspace || | 218 | ((((int)(*it)->fbwindow()->workspaceNumber()) == workspace || |
219 | (*it)->fbwindow()->isStuck()) && !(*it)->fbwindow()->isIconic())) | 219 | (*it)->fbwindow()->isStuck()) && (*it)->acceptsFocus() && |
220 | !(*it)->fbwindow()->isIconic())) | ||
220 | return *it; | 221 | return *it; |
221 | } | 222 | } |
222 | return 0; | 223 | return 0; |