restartsig + systray: allow systray icons to survive a restart by not destroying the systray window

pull/271/head
bakkeby 2 years ago
parent 440c4a6efa
commit 82c72835f6

@ -1234,6 +1234,9 @@ 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);

Loading…
Cancel
Save