summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 *