summaryrefslogtreecommitdiff
path: root/src/Gnome.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r--src/Gnome.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc
index 097484c..097a462 100644
--- a/src/Gnome.cc
+++ b/src/Gnome.cc
@@ -234,13 +234,13 @@ void Gnome::updateCurrentWorkspace(BScreen &screen) {
234} 234}
235 235
236void Gnome::updateWorkspaceCount(BScreen &screen) { 236void Gnome::updateWorkspaceCount(BScreen &screen) {
237 int numworkspaces = screen.getCount(); 237 long numworkspaces = screen.getCount();
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}
241 241
242void Gnome::updateWorkspace(FluxboxWindow &win) { 242void Gnome::updateWorkspace(FluxboxWindow &win) {
243 int val = win.workspaceNumber(); 243 long val = win.workspaceNumber();
244 if (win.isStuck()) { 244 if (win.isStuck()) {
245 val = -1; 245 val = -1;
246 } 246 }
@@ -259,7 +259,7 @@ void Gnome::updateWorkspace(FluxboxWindow &win) {
259 259
260void Gnome::updateState(FluxboxWindow &win) { 260void Gnome::updateState(FluxboxWindow &win) {
261 //translate to gnome win state 261 //translate to gnome win state
262 int state=0; 262 long state=0;
263 if (win.isStuck()) 263 if (win.isStuck())
264 state |= WIN_STATE_STICKY; 264 state |= WIN_STATE_STICKY;
265 if (win.isIconic()) 265 if (win.isIconic())
@@ -279,7 +279,7 @@ void Gnome::updateState(FluxboxWindow &win) {
279void Gnome::updateLayer(FluxboxWindow &win) { 279void Gnome::updateLayer(FluxboxWindow &win) {
280 //TODO - map from flux layers to gnome ones 280 //TODO - map from flux layers to gnome ones
281 // our layers are in the opposite direction to GNOME 281 // our layers are in the opposite direction to GNOME
282 int layernum = Fluxbox::instance()->getDesktopLayer() - win.layerNum(); 282 long layernum = Fluxbox::instance()->getDesktopLayer() - win.layerNum();
283 283
284 FluxboxWindow::ClientList::iterator client_it = win.clientList().begin(); 284 FluxboxWindow::ClientList::iterator client_it = win.clientList().begin();
285 FluxboxWindow::ClientList::iterator client_it_end = win.clientList().end(); 285 FluxboxWindow::ClientList::iterator client_it_end = win.clientList().end();