X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/22399a3bc05406a89f6ad717800b4d9ba41f6e0a..ecd9c3e22289b1627f7239e393bfb9c1967eee32:/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++);