X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=63f791f71992d0d6426e7a61204ec8d6ceeb110b;hb=f9e7a330190259a54449837a16c2af66fa823d30;hp=7d3479e82b20865ae3ce3355b7dc625b68780c41;hpb=7c9fa2566f5b3bd1c9745086ff624967415c2c4e;p=dwm.git 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++);