summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/slstatus.c b/slstatus.c
index 441c517..da4b237 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -601,7 +601,6 @@ main(void)
char *res, *element;
struct arg argument;
- stderr = stderr;
dpy = XOpenDisplay(NULL);
for (;;) {
@@ -621,10 +620,9 @@ main(void)
free(res);
free(element);
}
+ XStoreName(dpy, DefaultRootWindow(dpy), status_string);
+ XSync(dpy, False);
}
-
- XStoreName(dpy, DefaultRootWindow(dpy), status_string);
- XSync(dpy, False);
XCloseDisplay(dpy);
return 0;