aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-07-01 09:47:41 (GMT)
committerfluxgen <fluxgen>2003-07-01 09:47:41 (GMT)
commit1e097242f948c424585fc087900c8657695ca1fa (patch)
treeeda672bfe17b2431d467586e71bc7b58751d0cbf /src/WorkspaceCmd.cc
parent6ad9158c4f1e1adf1fbb80b205523aa1bc5fe4b7 (diff)
downloadfluxbox_pavel-1e097242f948c424585fc087900c8657695ca1fa.zip
fluxbox_pavel-1e097242f948c424585fc087900c8657695ca1fa.tar.bz2
added left and right workspace cmd
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r--src/WorkspaceCmd.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index f8f39da..45bf7a2 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.1 2003/06/30 14:38:42 fluxgen Exp $ 23// $Id: WorkspaceCmd.cc,v 1.2 2003/07/01 09:47:41 fluxgen Exp $
24 24
25#include "WorkspaceCmd.hh" 25#include "WorkspaceCmd.hh"
26#include "Workspace.hh" 26#include "Workspace.hh"
@@ -85,6 +85,18 @@ void PrevWorkspaceCmd::execute() {
85 screen->prevWorkspace(); 85 screen->prevWorkspace();
86} 86}
87 87
88void LeftWorkspaceCmd::execute() {
89 BScreen *screen = Fluxbox::instance()->keyScreen();
90 if (screen != 0)
91 screen->leftWorkspace(m_param);
92}
93
94void RightWorkspaceCmd::execute() {
95 BScreen *screen = Fluxbox::instance()->keyScreen();
96 if (screen != 0)
97 screen->rightWorkspace(m_param);
98}
99
88JumpToWorkspaceCmd::JumpToWorkspaceCmd(int workspace_num):m_workspace_num(workspace_num) { } 100JumpToWorkspaceCmd::JumpToWorkspaceCmd(int workspace_num):m_workspace_num(workspace_num) { }
89 101
90void JumpToWorkspaceCmd::execute() { 102void JumpToWorkspaceCmd::execute() {