aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r--src/WorkspaceCmd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index 08473df..eba4616 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -127,7 +127,7 @@ JumpToWorkspaceCmd::JumpToWorkspaceCmd(int workspace_num):m_workspace_num(worksp
127 127
128void JumpToWorkspaceCmd::execute() { 128void JumpToWorkspaceCmd::execute() {
129 BScreen *screen = Fluxbox::instance()->mouseScreen(); 129 BScreen *screen = Fluxbox::instance()->mouseScreen();
130 if (screen != 0 && m_workspace_num >= 0 && m_workspace_num < screen->getNumberOfWorkspaces()) 130 if (screen != 0)
131 screen->changeWorkspaceID(m_workspace_num); 131 screen->changeWorkspaceID(m_workspace_num);
132} 132}
133 133