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:
ba2947a
)
set old WM_NAME content before exiting
author
Aaron Marcher
<info@nulltime.net>
Tue, 13 Sep 2016 17:34:25 +0000
(19:34 +0200)
committer
Aaron Marcher (drkhsh)
<info@nulltime.net>
Tue, 13 Sep 2016 17:34:25 +0000
(19:34 +0200)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index 7babe1f1e73215ad17cacae7599bb840ca4fa675..991334af02900cd503cb2d345344b98c16f55e7a 100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-592,7
+592,7
@@
main(void)
{
size_t i;
char status_string[4096];
- char *res, *element;
+ char *res, *element
, *status_old
;
struct arg argument;
struct sigaction act;
@@
-603,6
+603,8
@@
main(void)
dpy = XOpenDisplay(NULL);
+ XFetchName(dpy, DefaultRootWindow(dpy), &status_old);
+
while (!done) {
status_string[0] = '\0';
for (i = 0; i < sizeof(args) / sizeof(args[0]); ++i) {
@@
-630,6
+632,9
@@
main(void)
delay = 0;
}
+ XStoreName(dpy, DefaultRootWindow(dpy), status_old);
+ XSync(dpy, False);
+
XCloseDisplay(dpy);
return 0;