diff --git a/dwm.c b/dwm.c index 2e43282..1565695 100644 --- a/dwm.c +++ b/dwm.c @@ -1847,7 +1847,7 @@ setup(void) wa.cursor = cursor[CurNormal]->cursor; wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask |ButtonPressMask|PointerMotionMask|EnterWindowMask - |LeaveWindowMask|StructureNotifyMask|PropertyChangeMask; + |LeaveWindowMask|StructureNotifyMask|PropertyChangeMask|KeyPressMask; XChangeWindowAttributes(dpy, root, CWEventMask|CWCursor, &wa); XSelectInput(dpy, root, wa.event_mask); grabkeys();