aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2005-07-04 18:19:09 (GMT)
committerfluxgen <fluxgen>2005-07-04 18:19:09 (GMT)
commit3626faea73a7e033e14ec2d06bdcb2b180d06172 (patch)
treee2f3cdc6928eb69fbd66f64a5ab82f5a56aa31cd /src/WorkspaceCmd.cc
parent1727656e0a36cd9095e173dfa43200ed14c178d1 (diff)
downloadfluxbox-3626faea73a7e033e14ec2d06bdcb2b180d06172.zip
fluxbox-3626faea73a7e033e14ec2d06bdcb2b180d06172.tar.bz2
cleaning, change getCount to numberOfWorkspaces
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