Fixed XCloseDisplay() which is not reached in keyboard_indicators()
This commit is contained in:
parent
823f2d047f
commit
b11dd2db0e
@ -329,6 +329,7 @@ keyboard_indicators(void)
|
|||||||
Display *dpy = XOpenDisplay(NULL);
|
Display *dpy = XOpenDisplay(NULL);
|
||||||
XKeyboardState state;
|
XKeyboardState state;
|
||||||
XGetKeyboardControl(dpy, &state);
|
XGetKeyboardControl(dpy, &state);
|
||||||
|
XCloseDisplay(dpy);
|
||||||
|
|
||||||
switch (state.led_mask) {
|
switch (state.led_mask) {
|
||||||
case 1:
|
case 1:
|
||||||
@ -343,8 +344,6 @@ keyboard_indicators(void)
|
|||||||
default:
|
default:
|
||||||
return smprintf("");
|
return smprintf("");
|
||||||
}
|
}
|
||||||
|
|
||||||
XCloseDisplay(dpy);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
|
Loading…
Reference in New Issue
Block a user