diff options
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r-- | src/Gnome.cc | 6 |
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 | ||
236 | void Gnome::updateWorkspaceCount(BScreen &screen) { | 236 | void 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) |