slstatus

Fork of suckless' slstatus with my personal patches
git clone https://git.instinctive.eu/slstatus.git
Log | Files | Refs | README | LICENSE

commit 7c11f890a5296ddd527ca956503bb33ceacd3ca9
parent b2b6eb638eadcdd5ea091d74f65b1c0a97e0df0a
Author: Aaron Marcher <me@drkhsh.at>
Date:   Wed,  2 May 2018 08:26:23 +0200

keyboard_indicators: Clean up opening display

Diffstat:
Mcomponents/keyboard_indicators.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/keyboard_indicators.c b/components/keyboard_indicators.c @@ -7,10 +7,10 @@ const char * keyboard_indicators(void) { - Display *dpy = XOpenDisplay(NULL); + Display *dpy; XKeyboardState state; - if (dpy == NULL) { + if (!(dpy = XOpenDisplay(NULL))) { fprintf(stderr, "Cannot open display\n"); return NULL; }