diff options
Diffstat (limited to 'src/FocusControl.cc')
-rw-r--r-- | src/FocusControl.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FocusControl.cc b/src/FocusControl.cc index f4c8cdf..e494d8f 100644 --- a/src/FocusControl.cc +++ b/src/FocusControl.cc | |||
@@ -30,6 +30,8 @@ | |||
30 | #include "fluxbox.hh" | 30 | #include "fluxbox.hh" |
31 | #include "FbWinFrameTheme.hh" | 31 | #include "FbWinFrameTheme.hh" |
32 | 32 | ||
33 | #include "FbTk/EventManager.hh" | ||
34 | |||
33 | #include <string> | 35 | #include <string> |
34 | #include <iostream> | 36 | #include <iostream> |
35 | 37 | ||
@@ -82,7 +84,7 @@ bool doSkipWindow(const WinClient &winclient, int opts) { | |||
82 | void FocusControl::cycleFocus(FocusedWindows *window_list, int opts, bool cycle_reverse) { | 84 | void FocusControl::cycleFocus(FocusedWindows *window_list, int opts, bool cycle_reverse) { |
83 | 85 | ||
84 | if (!m_cycling_list) { | 86 | if (!m_cycling_list) { |
85 | if (&m_screen == Fluxbox::instance()->watchingScreen()) | 87 | if (&m_screen == FbTk::EventManager::instance()->grabbingKeyboard()) |
86 | // only set this when we're waiting for modifiers | 88 | // only set this when we're waiting for modifiers |
87 | m_cycling_list = window_list; | 89 | m_cycling_list = window_list; |
88 | m_was_iconic = 0; | 90 | m_was_iconic = 0; |