aboutsummaryrefslogtreecommitdiff
path: root/src/Gnome.cc
diff options
context:
space:
mode:
authormathias <mathias>2005-01-31 16:55:38 (GMT)
committermathias <mathias>2005-01-31 16:55:38 (GMT)
commit67098a21ea9104fda0933ee14278819565f1cbc0 (patch)
treeefd3fa13eb486c7c5a6c0188f0e0e8e091da9596 /src/Gnome.cc
parentf4d3d79d385044701cec897d32b09c861b600993 (diff)
downloadfluxbox_pavel-67098a21ea9104fda0933ee14278819565f1cbc0.zip
fluxbox_pavel-67098a21ea9104fda0933ee14278819565f1cbc0.tar.bz2
closes #1107213, 64bit issues with XChangeProperty
submitted by Matthieu Herrb <matthieu.herrb@laas.fr>
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();