summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-05-07 13:12:41 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-05-07 13:12:41 +0200
commitf9e7a330190259a54449837a16c2af66fa823d30 (patch)
treea85452d878a8527bdcac2cefd86878271ccd0cab /main.c
parent7c9fa2566f5b3bd1c9745086ff624967415c2c4e (diff)
applied patch of Paul Liu to allow onthefly resizing due to xrandr changes
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 7d3479e8..63f791f7 100644
--- a/main.c
+++ b/main.c
@@ -163,9 +163,10 @@ setup(void) {
XFreeModifiermap(modmap);
/* select for events */
wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask
- | EnterWindowMask | LeaveWindowMask;
+ | EnterWindowMask | LeaveWindowMask | StructureNotifyMask;
wa.cursor = cursor[CurNormal];
XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
+ XSelectInput(dpy, root, wa.event_mask);
grabkeys();
compileregs();
for(ntags = 0; tags[ntags]; ntags++);