diff options
| -rw-r--r-- | slock.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -130,15 +130,15 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, | |||
| 130 | { | 130 | { |
| 131 | XRRScreenChangeNotifyEvent *rre; | 131 | XRRScreenChangeNotifyEvent *rre; |
| 132 | char buf[32], passwd[256], *inputhash; | 132 | char buf[32], passwd[256], *inputhash; |
| 133 | int num, screen, running, failure; | 133 | int num, screen, running, failure, oldc; |
| 134 | unsigned int len, color; | 134 | unsigned int len, color; |
| 135 | KeySym ksym; | 135 | KeySym ksym; |
| 136 | XEvent ev; | 136 | XEvent ev; |
| 137 | static int oldc = INIT; | ||
| 138 | 137 | ||
| 139 | len = 0; | 138 | len = 0; |
| 140 | running = 1; | 139 | running = 1; |
| 141 | failure = 0; | 140 | failure = 0; |
| 141 | oldc = INIT; | ||
| 142 | 142 | ||
| 143 | while (running && !XNextEvent(dpy, &ev)) { | 143 | while (running && !XNextEvent(dpy, &ev)) { |
| 144 | if (ev.type == KeyPress) { | 144 | if (ev.type == KeyPress) { |
