sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

slock-mediakeys-20170111-2d2a21a.diff (736B)


      1 From ca087d5b0e8cd4ac596c161dbf569640c7754b46 Mon Sep 17 00:00:00 2001
      2 From: Klemens Nanni <kl3@posteo.org>
      3 Date: Sat, 7 Jan 2017 02:18:09 +0100
      4 Subject: [PATCH] Update 'mediakeys' patch to 20170111
      5 
      6 ---
      7  slock.c | 2 +-
      8  1 file changed, 1 insertion(+), 1 deletion(-)
      9 
     10 diff --git a/slock.c b/slock.c
     11 index ac26cc8..4d81ca6 100644
     12 --- a/slock.c
     13 +++ b/slock.c
     14 @@ -186,7 +186,7 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
     15  			case XF86XK_AudioStop:
     16  			case XF86XK_AudioPrev:
     17  			case XF86XK_AudioNext:
     18 -				XSendEvent(dpy, locks[0]->root, True, KeyPressMask, &ev);
     19 +				XSendEvent(dpy, DefaultRootWindow(dpy), True, KeyPressMask, &ev);
     20  				break;
     21  			case XK_Return:
     22  				passwd[len] = '\0';
     23 -- 
     24 2.11.0
     25