diff options
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r-- | src/WorkspaceCmd.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index 3e6d128..08473df 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc | |||
@@ -42,13 +42,13 @@ | |||
42 | #include <iostream> | 42 | #include <iostream> |
43 | 43 | ||
44 | void NextWindowCmd::execute() { | 44 | void NextWindowCmd::execute() { |
45 | |||
46 | BScreen *screen = Fluxbox::instance()->keyScreen(); | 45 | BScreen *screen = Fluxbox::instance()->keyScreen(); |
47 | if (screen != 0) { | 46 | if (screen != 0) { |
48 | Fluxbox *fb = Fluxbox::instance(); | 47 | Fluxbox *fb = Fluxbox::instance(); |
49 | // special case for commands from key events | 48 | // special case for commands from key events |
50 | if (fb->lastEvent().type == KeyPress) { | 49 | if (fb->lastEvent().type == KeyPress) { |
51 | unsigned int mods = FbTk::KeyUtil::instance().cleanMods(fb->lastEvent().xkey.state); | 50 | unsigned int mods = FbTk::KeyUtil::instance().cleanMods(fb->lastEvent().xkey.state); |
51 | mods = FbTk::KeyUtil::instance().isolateModifierMask(mods); | ||
52 | if (mods == 0) // can't stacked cycle unless there is a mod to grab | 52 | if (mods == 0) // can't stacked cycle unless there is a mod to grab |
53 | screen->nextFocus(m_option | BScreen::CYCLELINEAR); | 53 | screen->nextFocus(m_option | BScreen::CYCLELINEAR); |
54 | else { | 54 | else { |
@@ -71,6 +71,7 @@ void PrevWindowCmd::execute() { | |||
71 | // special case for commands from key events | 71 | // special case for commands from key events |
72 | if (fb->lastEvent().type == KeyPress) { | 72 | if (fb->lastEvent().type == KeyPress) { |
73 | unsigned int mods = FbTk::KeyUtil::instance().cleanMods(fb->lastEvent().xkey.state); | 73 | unsigned int mods = FbTk::KeyUtil::instance().cleanMods(fb->lastEvent().xkey.state); |
74 | mods = FbTk::KeyUtil::instance().isolateModifierMask(mods); | ||
74 | if (mods == 0) // can't stacked cycle unless there is a mod to grab | 75 | if (mods == 0) // can't stacked cycle unless there is a mod to grab |
75 | screen->prevFocus(m_option | BScreen::CYCLELINEAR); | 76 | screen->prevFocus(m_option | BScreen::CYCLELINEAR); |
76 | else { | 77 | else { |