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