aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Ewmh.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index 291c39b..e7ba9a9 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -1177,14 +1177,14 @@ bool Ewmh::checkClientMessage(const XClientMessageEvent &ce,
1177 if (winclient == 0 || winclient->fbwindow() == 0) 1177 if (winclient == 0 || winclient->fbwindow() == 0)
1178 return true; 1178 return true;
1179 // ce.data.l[0] = gravity and flags 1179 // ce.data.l[0] = gravity and flags
1180 int x = (ce.data.l[0] & 0x0100) ? ce.data.l[1] : 1180 int x = (ce.data.l[0] & (1 << 8)) ? ce.data.l[1] :
1181 winclient->fbwindow()->x(); 1181 winclient->fbwindow()->x();
1182 int y = (ce.data.l[0] & 0x0200) ? ce.data.l[2] : 1182 int y = (ce.data.l[0] & (1 << 9)) ? ce.data.l[2] :
1183 winclient->fbwindow()->y(); 1183 winclient->fbwindow()->y();
1184 unsigned int width = (ce.data.l[0] & 0x0400) ? ce.data.l[3] : 1184 unsigned int width = (ce.data.l[0] & (1 << 10)) ? ce.data.l[3] :
1185 winclient->fbwindow()->width(); 1185 winclient->width();
1186 unsigned int height = (ce.data.l[0] & 0x0800) ? ce.data.l[4] : 1186 unsigned int height = (ce.data.l[0] & (1 << 11)) ? ce.data.l[4] :
1187 winclient->fbwindow()->height(); 1187 winclient->height();
1188 int win_gravity=ce.data.l[0] & 0xFF; 1188 int win_gravity=ce.data.l[0] & 0xFF;
1189 winclient->fbwindow()->moveResizeForClient(x, y, width, height, 1189 winclient->fbwindow()->moveResizeForClient(x, y, width, height,
1190 win_gravity, winclient->old_bw); 1190 win_gravity, winclient->old_bw);