slock
simple X display locker utility
git clone https://9o.is/git/slock.git
commit ce9d8e7eb6975cddf3a06c6a713baff10c5b5072 parent 7ba1ebba9682369630ee9d717512ab8fc1bcc548 Author: FRIGN <dev@frign.de> Date: Sun, 2 Oct 2016 00:03:18 +0200 No need for oldc to be static Diffstat:
| M | slock.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/slock.c b/slock.c @@ -130,15 +130,15 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, { XRRScreenChangeNotifyEvent *rre; char buf[32], passwd[256], *inputhash; - int num, screen, running, failure; + int num, screen, running, failure, oldc; unsigned int len, color; KeySym ksym; XEvent ev; - static int oldc = INIT; len = 0; running = 1; failure = 0; + oldc = INIT; while (running && !XNextEvent(dpy, &ev)) { if (ev.type == KeyPress) {