Browse Source

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

master
Aaron Marcher 9 years ago
parent
commit
b11dd2db0e
No known key found for this signature in database GPG Key ID: 74B048E5C2474F9A
  1. 3
      slstatus.c

3
slstatus.c

@ -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…
Cancel
Save