systray: allow systray icons to survive a restart by handing systray icons over to the root window before destroying the systray window

This commit is contained in:
bakkeby
2022-06-17 16:58:47 +02:00
parent 82c72835f6
commit 39fde74dfd
2 changed files with 1 additions and 3 deletions

3
dwm.c
View File

@@ -1234,9 +1234,6 @@ cleanup(void)
removesystrayicon(systray->icons);
if (systray->win) {
XUnmapWindow(dpy, systray->win);
#if RESTARTSIG_PATCH
if (!restart)
#endif // RESTARTSIG_PATCH
XDestroyWindow(dpy, systray->win);
}
free(systray);