slstatus

Custom version of the Suckless status monitor
git clone git://git.danielmoch.com/slstatus.git
Log | Files | Refs | README | LICENSE

commit b11dd2db0ebfc0b20ef2d5a972f13cf39bdd0b31
parent 823f2d047f9f14c5e401c337274c8c19542b3065
Author: Aaron Marcher <info@nulltime.net>
Date:   Mon, 23 Jan 2017 21:01:41 +0100

Fixed XCloseDisplay() which is not reached in keyboard_indicators()

Diffstat:
Mslstatus.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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 *