[wiki] [sites] [slock] Use DefaultRootWindow(3) macro in mediakeys patch || Klemens Nanni

From: <git_AT_suckless.org>
Date: Wed, 11 Jan 2017 16:53:47 +0100

commit 8890f554f37047410a7980eaed8f5cc7fd589261
Author: Klemens Nanni <kl3_AT_posteo.org>
Date: Wed Jan 11 16:44:59 2017 +0100

    [slock] Use DefaultRootWindow(3) macro in mediakeys patch

diff --git a/tools.suckless.org/slock/patches/mediakeys.md b/tools.suckless.org/slock/patches/mediakeys.md
index 900d8fd..36ac865 100644
--- a/tools.suckless.org/slock/patches/mediakeys.md
+++ b/tools.suckless.org/slock/patches/mediakeys.md
_AT_@ -19,7 +19,7 @@ or raise the volume, that's all there is to it.
 Download
 --------
 
-* [slock-mediakeys-20170106-2d2a21a.diff](slock-mediakeys-20170106-2d2a21a.diff)
+* [slock-mediakeys-20170111-2d2a21a.diff](slock-mediakeys-20170111-2d2a21a.diff)
 
 Authors
 -------
diff --git a/tools.suckless.org/slock/patches/slock-mediakeys-20170106-2d2a21a.diff b/tools.suckless.org/slock/patches/slock-mediakeys-20170106-2d2a21a.diff
deleted file mode 100644
index 8cc732b..0000000
--- a/tools.suckless.org/slock/patches/slock-mediakeys-20170106-2d2a21a.diff
+++ /dev/null
_AT_@ -1,41 +0,0 @@
-From b17dc228ed4da38bbd337976b611130427021a48 Mon Sep 17 00:00:00 2001
-From: Klemens Nanni <kl3_AT_posteo.org>
-Date: Fri, 2 Sep 2016 13:57:31 +0200
-Subject: [PATCH] Allow mediakeys
-
-This allows media hotkeys to be used while the screen is locked.
----
- slock.c | 10 ++++++++++
- 1 file changed, 10 insertions(+)
-
-diff --git a/slock.c b/slock.c
-index d55eb3d..39d16d2 100644
---- a/slock.c
-+++ b/slock.c
-_AT_@ -18,6 +18,7 @@
- #include <X11/keysym.h>
- #include <X11/Xlib.h>
- #include <X11/Xutil.h>
-+#include <X11/XF86keysym.h>
- 
- #include "arg.h"
- #include "util.h"
-_AT_@ -157,6 +158,15 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
- 			    IsPrivateKeypadKey(ksym))
- 				continue;
- 			switch (ksym) {
-+			case XF86XK_AudioLowerVolume:
-+			case XF86XK_AudioMute:
-+			case XF86XK_AudioRaiseVolume:
-+			case XF86XK_AudioPlay:
-+			case XF86XK_AudioStop:
-+			case XF86XK_AudioPrev:
-+			case XF86XK_AudioNext:
-+				XSendEvent(dpy, locks[screen]->root, True, KeyPressMask, &ev);
-+				break;
- 			case XK_Return:
- 				passwd[len] = '
Received on Wed Jan 11 2017 - 16:53:47 CET

This archive was generated by hypermail 2.3.0 : Wed Jan 11 2017 - 17:00:27 CET