From 67098a21ea9104fda0933ee14278819565f1cbc0 Mon Sep 17 00:00:00 2001 From: mathias Date: Mon, 31 Jan 2005 16:55:38 +0000 Subject: closes #1107213, 64bit issues with XChangeProperty submitted by Matthieu Herrb --- src/Ewmh.cc | 12 ++++++------ src/FbTk/FbPixmap.cc | 2 +- src/Gnome.cc | 8 ++++---- src/Window.hh | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Ewmh.cc b/src/Ewmh.cc index 6e980dd..34c166c 100644 --- a/src/Ewmh.cc +++ b/src/Ewmh.cc @@ -415,7 +415,7 @@ void Ewmh::updateCurrentWorkspace(BScreen &screen) { * This MUST be set and updated by the Window Manager. * */ - unsigned int workspace = screen.currentWorkspaceID(); + unsigned long workspace = screen.currentWorkspaceID(); screen.rootWindow().changeProperty(m_net_current_desktop, XA_CARDINAL, 32, PropModeReplace, @@ -432,7 +432,7 @@ void Ewmh::updateWorkspaceCount(BScreen &screen) { * Window Manager to indicate the number of virtual * desktops. */ - unsigned int numworkspaces = screen.getCount(); + unsigned long numworkspaces = screen.getCount(); screen.rootWindow().changeProperty(m_net_number_of_desktops, XA_CARDINAL, 32, PropModeReplace, @@ -450,7 +450,7 @@ void Ewmh::updateViewPort(BScreen &screen) { * desktops, this MUST always be set to (0,0). * */ - int value[2] = {0, 0}; // we dont support large desktops + long value[2] = {0, 0}; // we dont support large desktops screen.rootWindow().changeProperty(m_net_desktop_viewport, XA_CARDINAL, 32, PropModeReplace, @@ -470,7 +470,7 @@ void Ewmh::updateGeometry(BScreen &screen) { * Window Manager. * */ - int value[2] = {screen.width(), screen.height()}; + long value[2] = {screen.width(), screen.height()}; screen.rootWindow().changeProperty(m_net_desktop_geometry, XA_CARDINAL, 32, PropModeReplace, @@ -497,7 +497,7 @@ void Ewmh::updateWorkarea(BScreen &screen) { * Not sure how to handle xinerama stuff here. * So i'm just doing this on the first head. */ - unsigned int *coords = new unsigned int[4*screen.getCount()]; + unsigned long *coords = new unsigned long[4*screen.getCount()]; for (unsigned int i=0; igetDesktopLayer() - win.layerNum(); + long layernum = Fluxbox::instance()->getDesktopLayer() - win.layerNum(); FluxboxWindow::ClientList::iterator client_it = win.clientList().begin(); FluxboxWindow::ClientList::iterator client_it_end = win.clientList().end(); diff --git a/src/Window.hh b/src/Window.hh index 7c98b2c..ac13da6 100644 --- a/src/Window.hh +++ b/src/Window.hh @@ -143,13 +143,13 @@ public: typedef struct _blackbox_hints { unsigned long flags, attrib, workspace, stack; - int decoration; + long decoration; } BlackboxHints; typedef struct _blackbox_attributes { unsigned long flags, attrib, workspace, stack; - int premax_x, premax_y; - unsigned int premax_w, premax_h; + long premax_x, premax_y; + unsigned long premax_w, premax_h; } BlackboxAttributes; typedef std::list ClientList; -- cgit v0.11.2