From 720328cef9a9d81d2bd876bdf89103782b9cab91 Mon Sep 17 00:00:00 2001 From: "Ali H. Fardan" Date: Mon, 5 Sep 2016 02:17:30 +0300 Subject: what kind of weed is that? --- slstatus.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'slstatus.c') 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; -- cgit v1.2.3