diff options
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r-- | src/WorkspaceCmd.cc | 2 |
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 | ||
128 | void JumpToWorkspaceCmd::execute() { | 128 | void 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 | ||