set old WM_NAME content before exiting
This commit is contained in:
parent
ba2947ae45
commit
98e7324010
@ -592,7 +592,7 @@ main(void)
|
|||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
char status_string[4096];
|
char status_string[4096];
|
||||||
char *res, *element;
|
char *res, *element, *status_old;
|
||||||
struct arg argument;
|
struct arg argument;
|
||||||
struct sigaction act;
|
struct sigaction act;
|
||||||
|
|
||||||
@ -603,6 +603,8 @@ main(void)
|
|||||||
|
|
||||||
dpy = XOpenDisplay(NULL);
|
dpy = XOpenDisplay(NULL);
|
||||||
|
|
||||||
|
XFetchName(dpy, DefaultRootWindow(dpy), &status_old);
|
||||||
|
|
||||||
while (!done) {
|
while (!done) {
|
||||||
status_string[0] = '\0';
|
status_string[0] = '\0';
|
||||||
for (i = 0; i < sizeof(args) / sizeof(args[0]); ++i) {
|
for (i = 0; i < sizeof(args) / sizeof(args[0]); ++i) {
|
||||||
@ -630,6 +632,9 @@ main(void)
|
|||||||
delay = 0;
|
delay = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XStoreName(dpy, DefaultRootWindow(dpy), status_old);
|
||||||
|
XSync(dpy, False);
|
||||||
|
|
||||||
XCloseDisplay(dpy);
|
XCloseDisplay(dpy);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user