about summary refs log tree commit diff
path: root/pkgs/dwm/dwm-mediakeys.diff
blob: 0ec5336f48b1beb6cbde229211fcdc5a1294c063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();