all repos — slstatus @ b11dd2db0ebfc0b20ef2d5a972f13cf39bdd0b31

my build of slstatus (tools.suckless.org/slstatus/)

Fixed XCloseDisplay() which is not reached in keyboard_indicators()
Aaron Marcher info@nulltime.net
Mon, 23 Jan 2017 21:01:41 +0100
commit

b11dd2db0ebfc0b20ef2d5a972f13cf39bdd0b31

parent

823f2d047f9f14c5e401c337274c8c19542b3065

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M slstatus.cslstatus.c

@@ -329,6 +329,7 @@ {

Display *dpy = XOpenDisplay(NULL); XKeyboardState state; XGetKeyboardControl(dpy, &state); + XCloseDisplay(dpy); switch (state.led_mask) { case 1:

@@ -343,8 +344,6 @@ break;

default: return smprintf(""); } - - XCloseDisplay(dpy); } static char *