Fixed XCloseDisplay() which is not reached in keyboard_indicators()

This commit is contained in:
Aaron Marcher 2017-01-23 21:01:41 +01:00
parent 823f2d047f
commit b11dd2db0e
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A

View File

@ -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 *