diff options
author | fluxgen <fluxgen> | 2005-07-04 18:19:09 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2005-07-04 18:19:09 (GMT) |
commit | 3626faea73a7e033e14ec2d06bdcb2b180d06172 (patch) | |
tree | e2f3cdc6928eb69fbd66f64a5ab82f5a56aa31cd /src/WorkspaceCmd.cc | |
parent | 1727656e0a36cd9095e173dfa43200ed14c178d1 (diff) | |
download | fluxbox-3626faea73a7e033e14ec2d06bdcb2b180d06172.zip fluxbox-3626faea73a7e033e14ec2d06bdcb2b180d06172.tar.bz2 |
cleaning, change getCount to numberOfWorkspaces
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 | ||