summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Haller <patrick@haller.ws>2011-03-06 23:24:41 +0800
committerPatrick Haller <patrick@haller.ws>2011-03-06 23:24:41 +0800
commitc7572b0e4442c3326341ffbad547643ce9d6adfd (patch)
tree3476e75521fe150f097e8e6fafd15308fe7e80fd
parenta7459b28a907216b3a5c37f465466ce5b7aba1a5 (diff)
check for override redirect
-rw-r--r--x-placement-manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/x-placement-manager.c b/x-placement-manager.c
index d7b8735..f51e7f2 100644
--- a/x-placement-manager.c
+++ b/x-placement-manager.c
@@ -27,9 +27,11 @@ place_center(Display *d, XEvent *e) {
XMapRequestEvent *ev = &e->xmaprequest;
int x, y;
- if(!XGetWindowAttributes(d, r, &r_wa))
+ if (!XGetWindowAttributes(d, r, &r_wa))
return;
- if(!XGetWindowAttributes(d, ev->window, &c_wa))
+ if (!XGetWindowAttributes(d, ev->window, &c_wa))
+ return;
+ if (c_wa.override_redirect)
return;
x = r_wa.width/2 - c_wa.width/2;
y = r_wa.height/2 - c_wa.height/2;