aboutsummaryrefslogtreecommitdiff
path: root/src/Gnome.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r--src/Gnome.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc
index 684b7f6..81803dd 100644
--- a/src/Gnome.cc
+++ b/src/Gnome.cc
@@ -93,12 +93,11 @@ void Gnome::setupFrame(FluxboxWindow &win) {
93 Atom ret_type; 93 Atom ret_type;
94 int fmt; 94 int fmt;
95 unsigned long nitems, bytes_after; 95 unsigned long nitems, bytes_after;
96 long flags; 96 long flags, *data = 0;
97 unsigned char *data = 0;
98 97
99 if (win.winClient().property(m_gnome_wm_win_state, 0, 1, False, XA_CARDINAL, 98 if (win.winClient().property(m_gnome_wm_win_state, 0, 1, False, XA_CARDINAL,
100 &ret_type, &fmt, &nitems, &bytes_after, 99 &ret_type, &fmt, &nitems, &bytes_after,
101 &data) && data) { 100 (unsigned char **) &data) && data) {
102 flags = *data; 101 flags = *data;
103 setState(&win, flags); 102 setState(&win, flags);
104 XFree (data); 103 XFree (data);
@@ -109,7 +108,7 @@ void Gnome::setupFrame(FluxboxWindow &win) {
109 // load gnome layer atom 108 // load gnome layer atom
110 if (win.winClient().property(m_gnome_wm_win_layer, 0, 1, False, XA_CARDINAL, 109 if (win.winClient().property(m_gnome_wm_win_layer, 0, 1, False, XA_CARDINAL,
111 &ret_type, &fmt, &nitems, &bytes_after, 110 &ret_type, &fmt, &nitems, &bytes_after,
112 &data) && data) { 111 (unsigned char **) &data) && data) {
113 flags = *data; 112 flags = *data;
114 setLayer(&win, flags); 113 setLayer(&win, flags);
115 XFree (data); 114 XFree (data);
@@ -120,7 +119,7 @@ void Gnome::setupFrame(FluxboxWindow &win) {
120 // load gnome workspace atom 119 // load gnome workspace atom
121 if (win.winClient().property(m_gnome_wm_win_workspace, 0, 1, False, XA_CARDINAL, 120 if (win.winClient().property(m_gnome_wm_win_workspace, 0, 1, False, XA_CARDINAL,
122 &ret_type, &fmt, &nitems, &bytes_after, 121 &ret_type, &fmt, &nitems, &bytes_after,
123 &data) && data) { 122 (unsigned char **) &data) && data) {
124 unsigned int workspace_num = *data; 123 unsigned int workspace_num = *data;
125 if (win.workspaceNumber() != workspace_num) 124 if (win.workspaceNumber() != workspace_num)
126 win.setWorkspace(workspace_num); 125 win.setWorkspace(workspace_num);