Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
fixing remaining space calculation
[dwm.git]
/
main.c
diff --git
a/main.c
b/main.c
index
7d3479e
..
63f791f
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-163,9
+163,10
@@
setup(void) {
XFreeModifiermap(modmap);
/* select for events */
wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask
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);
wa.cursor = cursor[CurNormal];
XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
+ XSelectInput(dpy, root, wa.event_mask);
grabkeys();
compileregs();
for(ntags = 0; tags[ntags]; ntags++);
grabkeys();
compileregs();
for(ntags = 0; tags[ntags]; ntags++);