From f9e7a330190259a54449837a16c2af66fa823d30 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 7 May 2007 13:12:41 +0200 Subject: applied patch of Paul Liu to allow onthefly resizing due to xrandr changes --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 7d3479e..63f791f 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++); -- cgit v1.2.3