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, 5 insertions, 4 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc
index 81803dd..684b7f6 100644
--- a/src/Gnome.cc
+++ b/src/Gnome.cc
@@ -93,11 +93,12 @@ 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, *data = 0; 96 long flags;
97 unsigned char *data = 0;
97 98
98 if (win.winClient().property(m_gnome_wm_win_state, 0, 1, False, XA_CARDINAL, 99 if (win.winClient().property(m_gnome_wm_win_state, 0, 1, False, XA_CARDINAL,
99 &ret_type, &fmt, &nitems, &bytes_after, 100 &ret_type, &fmt, &nitems, &bytes_after,
100 (unsigned char **) &data) && data) { 101 &data) && data) {
101 flags = *data; 102 flags = *data;
102 setState(&win, flags); 103 setState(&win, flags);
103 XFree (data); 104 XFree (data);
@@ -108,7 +109,7 @@ void Gnome::setupFrame(FluxboxWindow &win) {
108 // load gnome layer atom 109 // load gnome layer atom
109 if (win.winClient().property(m_gnome_wm_win_layer, 0, 1, False, XA_CARDINAL, 110 if (win.winClient().property(m_gnome_wm_win_layer, 0, 1, False, XA_CARDINAL,
110 &ret_type, &fmt, &nitems, &bytes_after, 111 &ret_type, &fmt, &nitems, &bytes_after,
111 (unsigned char **) &data) && data) { 112 &data) && data) {
112 flags = *data; 113 flags = *data;
113 setLayer(&win, flags); 114 setLayer(&win, flags);
114 XFree (data); 115 XFree (data);
@@ -119,7 +120,7 @@ void Gnome::setupFrame(FluxboxWindow &win) {
119 // load gnome workspace atom 120 // load gnome workspace atom
120 if (win.winClient().property(m_gnome_wm_win_workspace, 0, 1, False, XA_CARDINAL, 121 if (win.winClient().property(m_gnome_wm_win_workspace, 0, 1, False, XA_CARDINAL,
121 &ret_type, &fmt, &nitems, &bytes_after, 122 &ret_type, &fmt, &nitems, &bytes_after,
122 (unsigned char **) &data) && data) { 123 &data) && data) {
123 unsigned int workspace_num = *data; 124 unsigned int workspace_num = *data;
124 if (win.workspaceNumber() != workspace_num) 125 if (win.workspaceNumber() != workspace_num)
125 win.setWorkspace(workspace_num); 126 win.setWorkspace(workspace_num);