about summary refs log tree commit diff
path: root/pkgs/dwm/dwm-mediakeys.diff
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/dwm/dwm-mediakeys.diff')
-rw-r--r--pkgs/dwm/dwm-mediakeys.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/dwm/dwm-mediakeys.diff b/pkgs/dwm/dwm-mediakeys.diff
new file mode 100644
index 0000000..0ec5336
--- /dev/null
+++ b/pkgs/dwm/dwm-mediakeys.diff
@@ -0,0 +1,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();