summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorAaron Marcher <info@nulltime.net>2017-01-23 21:01:41 +0100
committerAaron Marcher <info@nulltime.net>2017-01-23 21:01:41 +0100
commitb11dd2db0ebfc0b20ef2d5a972f13cf39bdd0b31 (patch)
treebfa0565fcad9891f05ccd497aa4f30119d100ce9 /slstatus.c
parent823f2d047f9f14c5e401c337274c8c19542b3065 (diff)
Fixed XCloseDisplay() which is not reached in keyboard_indicators()
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/slstatus.c b/slstatus.c
index d29436d..53e1946 100644
--- 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 *