diff options
author | fluxgen <fluxgen> | 2003-12-30 18:16:51 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-12-30 18:16:51 (GMT) |
commit | 5febf6c902516a578004a2df336a16c98bcc45f7 (patch) | |
tree | 5e0668006d7c6195e8352c91eafcf3b24e3946eb /src/WorkspaceCmd.cc | |
parent | 35e2057fb77b89ed1726b53b598b27781516d001 (diff) | |
download | fluxbox_pavel-5febf6c902516a578004a2df336a16c98bcc45f7.zip fluxbox_pavel-5febf6c902516a578004a2df336a16c98bcc45f7.tar.bz2 |
minor cleaning
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r-- | src/WorkspaceCmd.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index 40c1053..a0132ee 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: WorkspaceCmd.cc,v 1.8 2003/12/03 17:55:13 fluxgen Exp $ | 23 | // $Id: WorkspaceCmd.cc,v 1.9 2003/12/30 18:15:55 fluxgen Exp $ |
24 | 24 | ||
25 | #include "WorkspaceCmd.hh" | 25 | #include "WorkspaceCmd.hh" |
26 | 26 | ||
@@ -34,6 +34,7 @@ | |||
34 | #include <cmath> | 34 | #include <cmath> |
35 | #include <algorithm> | 35 | #include <algorithm> |
36 | #include <functional> | 36 | #include <functional> |
37 | #include <iostream> | ||
37 | 38 | ||
38 | void NextWindowCmd::execute() { | 39 | void NextWindowCmd::execute() { |
39 | 40 | ||
@@ -42,7 +43,7 @@ void NextWindowCmd::execute() { | |||
42 | Fluxbox *fb = Fluxbox::instance(); | 43 | Fluxbox *fb = Fluxbox::instance(); |
43 | // special case for commands from key events | 44 | // special case for commands from key events |
44 | if (fb->lastEvent().type == KeyPress) { | 45 | if (fb->lastEvent().type == KeyPress) { |
45 | unsigned int mods = FbTk::KeyUtil::cleanMods(fb->lastEvent().xkey.state); | 46 | unsigned int mods = FbTk::KeyUtil::instance().cleanMods(fb->lastEvent().xkey.state); |
46 | if (mods == 0) // can't stacked cycle unless there is a mod to grab | 47 | if (mods == 0) // can't stacked cycle unless there is a mod to grab |
47 | screen->nextFocus(m_option | BScreen::CYCLELINEAR); | 48 | screen->nextFocus(m_option | BScreen::CYCLELINEAR); |
48 | else { | 49 | else { |
@@ -63,7 +64,7 @@ void PrevWindowCmd::execute() { | |||
63 | Fluxbox *fb = Fluxbox::instance(); | 64 | Fluxbox *fb = Fluxbox::instance(); |
64 | // special case for commands from key events | 65 | // special case for commands from key events |
65 | if (fb->lastEvent().type == KeyPress) { | 66 | if (fb->lastEvent().type == KeyPress) { |
66 | unsigned int mods = FbTk::KeyUtil::cleanMods(fb->lastEvent().xkey.state); | 67 | unsigned int mods = FbTk::KeyUtil::instance().cleanMods(fb->lastEvent().xkey.state); |
67 | if (mods == 0) // can't stacked cycle unless there is a mod to grab | 68 | if (mods == 0) // can't stacked cycle unless there is a mod to grab |
68 | screen->prevFocus(m_option | BScreen::CYCLELINEAR); | 69 | screen->prevFocus(m_option | BScreen::CYCLELINEAR); |
69 | else { | 70 | else { |