summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Gnome.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc
index c7784c3..1eb0c04 100644
--- a/src/Gnome.cc
+++ b/src/Gnome.cc
@@ -19,9 +19,10 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Gnome.cc,v 1.2 2002/09/08 10:58:30 fluxgen Exp $ 22// $Id: Gnome.cc,v 1.3 2002/09/10 12:23:03 fluxgen Exp $
23 23
24#include "Gnome.hh" 24#include "Gnome.hh"
25
25#include "Window.hh" 26#include "Window.hh"
26#include "Screen.hh" 27#include "Screen.hh"
27 28
@@ -94,14 +95,9 @@ void Gnome::setupWindow(FluxboxWindow &win) {
94 XFree (data); 95 XFree (data);
95 } 96 }
96 97
97 if (XGetWindowProperty(disp, win.getClientWindow(), 98 // make sure we get right workspace
98 m_gnome_wm_win_workspace, 0, 1, False, XA_CARDINAL, 99 updateWorkspace(win);
99 &ret_type, &fmt, &nitems, &bytes_after, 100
100 (unsigned char **)&data) == Success && data) {
101#ifdef DEBUG
102 cerr<<__FILE__<<"("<<__LINE__<<"): Workspace: "<<*data<<endl;
103#endif // DEBUG
104 }
105} 101}
106 102
107void Gnome::updateClientList(const BScreen &screen) { 103void Gnome::updateClientList(const BScreen &screen) {
@@ -188,6 +184,10 @@ void Gnome::updateWorkspaceCount(const BScreen &screen) {
188 184
189void Gnome::updateWorkspace(FluxboxWindow &win) { 185void Gnome::updateWorkspace(FluxboxWindow &win) {
190 int val = win.getWorkspaceNumber(); 186 int val = win.getWorkspaceNumber();
187#ifdef DEBUG
188 cerr<<__FILE__<<"("<<__LINE__<<"): setting workspace("<<val<<
189 ") for window("<<&win<<")"<<endl;
190#endif // DEBUG
191 XChangeProperty(BaseDisplay::getXDisplay(), win.getClientWindow(), 191 XChangeProperty(BaseDisplay::getXDisplay(), win.getClientWindow(),
192 m_gnome_wm_win_workspace, 192 m_gnome_wm_win_workspace,
193 XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1); 193 XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1);