aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
authormarkt <markt>2006-12-17 22:21:23 (GMT)
committermarkt <markt>2006-12-17 22:21:23 (GMT)
commit2ff67d09a733e8e986e8f212bb02dd3d5fef40ee (patch)
tree973e525439783f087a61410756757d045afcad3f /src/WorkspaceCmd.cc
parentecb0d95b8fdb98137236dfb17fdf0ebe384b6c29 (diff)
downloadfluxbox-2ff67d09a733e8e986e8f212bb02dd3d5fef40ee.zip
fluxbox-2ff67d09a733e8e986e8f212bb02dd3d5fef40ee.tar.bz2
Stop cycling focus when another command gets run, even if modifiers are still down
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r--src/WorkspaceCmd.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index 2ced53f..204d1b9 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -54,8 +54,7 @@ void NextWindowCmd::execute() {
54 else { 54 else {
55 // if stacked cycling, then set a watch for 55 // if stacked cycling, then set a watch for
56 // the release of exactly these modifiers 56 // the release of exactly these modifiers
57 if (screen != fb->watchingScreen()) 57 Fluxbox::instance()->watchKeyRelease(*screen, mods);
58 Fluxbox::instance()->watchKeyRelease(*screen, mods);
59 screen->focusControl().nextFocus(m_option); 58 screen->focusControl().nextFocus(m_option);
60 } 59 }
61 } else 60 } else
@@ -76,8 +75,7 @@ void PrevWindowCmd::execute() {
76 else { 75 else {
77 // if stacked cycling, then set a watch for 76 // if stacked cycling, then set a watch for
78 // the release of exactly these modifiers 77 // the release of exactly these modifiers
79 if (screen != fb->watchingScreen()) 78 Fluxbox::instance()->watchKeyRelease(*screen, mods);
80 Fluxbox::instance()->watchKeyRelease(*screen, mods);
81 screen->focusControl().prevFocus(m_option); 79 screen->focusControl().prevFocus(m_option);
82 } 80 }
83 } else 81 } else