Xinqi Bao's Git
projects
/
slstatus.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
823f2d0
)
Fixed XCloseDisplay() which is not reached in keyboard_indicators()
author
Aaron Marcher <
[email protected]
>
Mon, 23 Jan 2017 20:01:41 +0000
(21:01 +0100)
committer
Aaron Marcher <
[email protected]
>
Mon, 23 Jan 2017 20:01:41 +0000
(21:01 +0100)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index
d29436d
..
53e1946
100644
(file)
--- a/
slstatus.c
+++ b/
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 *