aboutsummaryrefslogtreecommitdiff
path: root/src/Gnome.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2005-07-04 18:19:53 (GMT)
committerfluxgen <fluxgen>2005-07-04 18:19:53 (GMT)
commit63475f77965c0dce84a4130b90573aeb9c0a3692 (patch)
tree8ccb9460afb78bcbc68759d88471e091447eddba /src/Gnome.cc
parent3626faea73a7e033e14ec2d06bdcb2b180d06172 (diff)
downloadfluxbox-63475f77965c0dce84a4130b90573aeb9c0a3692.zip
fluxbox-63475f77965c0dce84a4130b90573aeb9c0a3692.tar.bz2
cleaning, change getCount to numberOfWorkspaces
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r--src/Gnome.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc
index 1691c9e..59cbc0a 100644
--- a/src/Gnome.cc
+++ b/src/Gnome.cc
@@ -234,7 +234,7 @@ void Gnome::updateCurrentWorkspace(BScreen &screen) {
234} 234}
235 235
236void Gnome::updateWorkspaceCount(BScreen &screen) { 236void Gnome::updateWorkspaceCount(BScreen &screen) {
237 long numworkspaces = screen.getCount(); 237 long numworkspaces = screen.numberOfWorkspaces();
238 screen.rootWindow().changeProperty(m_gnome_wm_win_workspace_count, XA_CARDINAL, 32, PropModeReplace, 238 screen.rootWindow().changeProperty(m_gnome_wm_win_workspace_count, XA_CARDINAL, 32, PropModeReplace,
239 (unsigned char *)&numworkspaces, 1); 239 (unsigned char *)&numworkspaces, 1);
240} 240}
@@ -302,12 +302,12 @@ bool Gnome::checkClientMessage(const XClientMessageEvent &ce, BScreen * screen,
302#endif//!DEBUG 302#endif//!DEBUG
303 if ( winclient !=0 && // the message sent to client window? 303 if ( winclient !=0 && // the message sent to client window?
304 ce.data.l[0] >= 0 && 304 ce.data.l[0] >= 0 &&
305 ce.data.l[0] < (signed)winclient->screen().getCount()) { 305 ce.data.l[0] < (signed)winclient->screen().numberOfWorkspaces()) {
306 winclient->screen().changeWorkspaceID(ce.data.l[0]); 306 winclient->screen().changeWorkspaceID(ce.data.l[0]);
307 307
308 } else if (screen!=0 && //the message sent to root window? 308 } else if (screen!=0 && //the message sent to root window?
309 ce.data.l[0] >= 0 && 309 ce.data.l[0] >= 0 &&
310 ce.data.l[0] < (signed)screen->getCount()) 310 ce.data.l[0] < (signed)screen->numberOfWorkspaces())
311 screen->changeWorkspaceID(ce.data.l[0]); 311 screen->changeWorkspaceID(ce.data.l[0]);
312 return true; 312 return true;
313 } else if (winclient == 0) 313 } else if (winclient == 0)