Browse Source
Fixed XCloseDisplay() which is not reached in keyboard_indicators()
master
Aaron Marcher
9 years ago
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A
1 changed files with
1 additions and
2 deletions
-
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 * |
|
|
|
|