No need for oldc to be static
This commit is contained in:
parent
b099d2fd18
commit
6a1bd89635
4
slock.c
4
slock.c
|
@ -130,15 +130,15 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
|
||||||
{
|
{
|
||||||
XRRScreenChangeNotifyEvent *rre;
|
XRRScreenChangeNotifyEvent *rre;
|
||||||
char buf[32], passwd[256], *inputhash;
|
char buf[32], passwd[256], *inputhash;
|
||||||
int num, screen, running, failure;
|
int num, screen, running, failure, oldc;
|
||||||
unsigned int len, color;
|
unsigned int len, color;
|
||||||
KeySym ksym;
|
KeySym ksym;
|
||||||
XEvent ev;
|
XEvent ev;
|
||||||
static int oldc = INIT;
|
|
||||||
|
|
||||||
len = 0;
|
len = 0;
|
||||||
running = 1;
|
running = 1;
|
||||||
failure = 0;
|
failure = 0;
|
||||||
|
oldc = INIT;
|
||||||
|
|
||||||
while (running && !XNextEvent(dpy, &ev)) {
|
while (running && !XNextEvent(dpy, &ev)) {
|
||||||
if (ev.type == KeyPress) {
|
if (ev.type == KeyPress) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user