[wiki] [sites] Remove accidently committed patch || Klemens Nanni

From: <git_AT_suckless.org>
Date: Tue, 30 Aug 2016 21:51:56 +0200

commit 9a0f929413a6abfc302b8857ba7c9b1e0de84ee8
Author: Klemens Nanni <kl3_AT_posteo.org>
Date: Tue Aug 30 21:47:31 2016 +0200

    Remove accidently committed patch
    
    This unfinished patch slipped through commit 78a14be. As soon as it's
    finished, it will be committed properly.

diff --git a/tools.suckless.org/slock/patches/slock-mediakeys-20160729-0f4694a.diff b/tools.suckless.org/slock/patches/slock-mediakeys-20160729-0f4694a.diff
deleted file mode 100644
index ed06e35..0000000
--- a/tools.suckless.org/slock/patches/slock-mediakeys-20160729-0f4694a.diff
+++ /dev/null
_AT_@ -1,48 +0,0 @@
-From 0f4694a7feef3b645a257ab02f631f75dc217b08 Mon Sep 17 00:00:00 2001
-From: Klemens Nanni <kl3_AT_posteo.org>
-Date: Fri, 29 Jul 2016 02:14:48 +0200
-Subject: [PATCH] Allow media hotkeys
-
----
- slock.c | 11 +++++++++++
- 1 file changed, 11 insertions(+)
-
-diff --git a/slock.c b/slock.c
-index c9cdee2..9781aa8 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_@ -122,6 +123,7 @@ readpw(Display *dpy, const char *pws)
- 	char buf[32], passwd[256];
- 	int num, screen;
- 	unsigned int len, color;
-+	Window win;
- 	KeySym ksym;
- 	XEvent ev;
- 	static int oldc = INIT;
-_AT_@ -170,6 +172,15 @@ readpw(Display *dpy, const char *pws)
- 				if (len)
- 					--len;
- 				break;
-+			case XF86XK_AudioLowerVolume:
-+			case XF86XK_AudioMute:
-+			case XF86XK_AudioRaiseVolume:
-+			case XF86XK_AudioPlay:
-+			case XF86XK_AudioStop:
-+			case XF86XK_AudioPrev:
-+			case XF86XK_AudioNext:
-+				XSendEvent(dpy, win, True, KeyPressMask, &ev);
-+				break;
- 			default:
- 				if (num && !iscntrl((int)buf[0]) && (len + num < sizeof(passwd))) {
- 					memcpy(passwd + len, buf, num);
--- 
-2.8.3
-
Received on Tue Aug 30 2016 - 21:51:56 CEST

This archive was generated by hypermail 2.3.0 : Tue Aug 30 2016 - 22:00:16 CEST