diff options
author | Aaron Marcher <info@nulltime.net> | 2017-01-23 21:01:41 +0100 |
---|---|---|
committer | Aaron Marcher <info@nulltime.net> | 2017-01-23 21:01:41 +0100 |
commit | b11dd2db0ebfc0b20ef2d5a972f13cf39bdd0b31 (patch) | |
tree | bfa0565fcad9891f05ccd497aa4f30119d100ce9 /slstatus.c | |
parent | 823f2d047f9f14c5e401c337274c8c19542b3065 (diff) |
Fixed XCloseDisplay() which is not reached in keyboard_indicators()
Diffstat (limited to 'slstatus.c')
-rw-r--r-- | slstatus.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 * |