diff options
author | markt <markt> | 2007-07-01 21:01:31 (GMT) |
---|---|---|
committer | markt <markt> | 2007-07-01 21:01:31 (GMT) |
commit | 69d63da5420965216f2cd6a756301c70f6c32284 (patch) | |
tree | 919c3f48fb5ed1318d5376283ba5fc16f612003e /src/WorkspaceCmd.cc | |
parent | 7783a8c84e57c4a58d270b9722800a031f50ed62 (diff) | |
download | fluxbox_pavel-69d63da5420965216f2cd6a756301c70f6c32284.zip fluxbox_pavel-69d63da5420965216f2cd6a756301c70f6c32284.tar.bz2 |
added key commands :AddWorkspace and :RemoveLastWorkspace
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r-- | src/WorkspaceCmd.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index 0cbf5b9..b040fdd 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc | |||
@@ -63,6 +63,18 @@ void DirFocusCmd::execute() { | |||
63 | screen->focusControl().dirFocus(*win, m_dir); | 63 | screen->focusControl().dirFocus(*win, m_dir); |
64 | } | 64 | } |
65 | 65 | ||
66 | void AddWorkspaceCmd::execute() { | ||
67 | BScreen *screen = Fluxbox::instance()->mouseScreen(); | ||
68 | if (screen != 0) | ||
69 | screen->addWorkspace(); | ||
70 | } | ||
71 | |||
72 | void RemoveLastWorkspaceCmd::execute() { | ||
73 | BScreen *screen = Fluxbox::instance()->mouseScreen(); | ||
74 | if (screen != 0) | ||
75 | screen->removeLastWorkspace(); | ||
76 | } | ||
77 | |||
66 | void NextWorkspaceCmd::execute() { | 78 | void NextWorkspaceCmd::execute() { |
67 | BScreen *screen = Fluxbox::instance()->mouseScreen(); | 79 | BScreen *screen = Fluxbox::instance()->mouseScreen(); |
68 | if (screen != 0) | 80 | if (screen != 0) |