[wiki] [sites] [slock] Typofix in mediakeys patch date || Klemens Nanni

From: <git_AT_suckless.org>
Date: Fri, 02 Sep 2016 15:04:10 +0200

commit 60bb2bdf466b2333a188696be637f139ba134647
Author: Klemens Nanni <kl3_AT_posteo.org>
Date: Fri Sep 2 15:04:00 2016 +0200

    [slock] Typofix in mediakeys patch date

diff --git a/tools.suckless.org/slock/patches/mediakeys.md b/tools.suckless.org/slock/patches/mediakeys.md
index 7faa0ba..eab8584 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-20160209-a55594f.diff](slock-mediakeys-20163108-a55594f.diff)
+* [slock-mediakeys-20160902-a55594f.diff](slock-mediakeys-20163108-a55594f.diff)
 
 Authors
 -------
diff --git a/tools.suckless.org/slock/patches/slock-mediakeys-20160209-a55594f.diff b/tools.suckless.org/slock/patches/slock-mediakeys-20160209-a55594f.diff
deleted file mode 100644
index 16b2bbc..0000000
--- a/tools.suckless.org/slock/patches/slock-mediakeys-20160209-a55594f.diff
+++ /dev/null
_AT_@ -1,41 +0,0 @@
-From 5501bf403490eaf4c569be0889ef53011ddc23fd 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 08ada6f..305f406 100644
---- a/slock.c
-+++ b/slock.c
-_AT_@ -17,6 +17,7 @@
- #include <X11/keysym.h>
- #include <X11/Xlib.h>
- #include <X11/Xutil.h>
-+#include <X11/XF86keysym.h>
- 
- #if HAVE_BSD_AUTH
- #include <login_cap.h>
-_AT_@ -161,6 +162,15 @@ readpw(Display *dpy, const char *pws)
- 			    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[0]->root, True, KeyPressMask, &ev);
-+				break;
- 			case XK_Return:
- 				passwd[len] = 0;
- #ifdef HAVE_BSD_AUTH
--- 
-2.8.3
-
diff --git a/tools.suckless.org/slock/patches/slock-mediakeys-20160902-a55594f.diff b/tools.suckless.org/slock/patches/slock-mediakeys-20160902-a55594f.diff
new file mode 100644
index 0000000..16b2bbc
--- /dev/null
+++ b/tools.suckless.org/slock/patches/slock-mediakeys-20160902-a55594f.diff
_AT_@ -0,0 +1,41 @@
+From 5501bf403490eaf4c569be0889ef53011ddc23fd 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 08ada6f..305f406 100644
+--- a/slock.c
++++ b/slock.c
+_AT_@ -17,6 +17,7 @@
+ #include <X11/keysym.h>
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
++#include <X11/XF86keysym.h>
+ 
+ #if HAVE_BSD_AUTH
+ #include <login_cap.h>
+_AT_@ -161,6 +162,15 @@ readpw(Display *dpy, const char *pws)
+ 			    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[0]->root, True, KeyPressMask, &ev);
++				break;
+ 			case XK_Return:
+ 				passwd[len] = 0;
+ #ifdef HAVE_BSD_AUTH
+-- 
+2.8.3
+
Received on Fri Sep 02 2016 - 15:04:10 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 02 2016 - 15:12:18 CEST