summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorAli H. Fardan <raiz@firemail.cc>2016-09-05 02:17:30 +0300
committerAli H. Fardan <raiz@firemail.cc>2016-09-05 02:17:30 +0300
commit720328cef9a9d81d2bd876bdf89103782b9cab91 (patch)
tree8d807da199dd3816b585c51e77158b0412c18952 /slstatus.c
parentb9b6486cda91051553c9f9d7be75468c64206eec (diff)
what kind of weed is that?
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;