---- - 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