projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2b6eb6
)
keyboard_indicators: Clean up opening display
author
Aaron Marcher
<me@drkhsh.at>
Wed, 2 May 2018 06:26:23 +0000
(08:26 +0200)
committer
Aaron Marcher
<me@drkhsh.at>
Wed, 2 May 2018 06:26:23 +0000
(08:26 +0200)
components/keyboard_indicators.c
patch
|
blob
|
history
diff --git
a/components/keyboard_indicators.c
b/components/keyboard_indicators.c
index 76cf17e54e4411a9cc83918840505e34422ddfdd..ed4bc1712dc0b4b963aa6bbbdf30c7612c8ea1ae 100644
(file)
--- 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;
}