summaryrefslogtreecommitdiffhomepage
path: root/dwm.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2022-06-17 16:13:10 +0200
committerbakkeby <[email protected]>2022-06-17 16:13:10 +0200
commit82c72835f62132bb6ab62ad0d4b237e85681d73c (patch)
tree7aeb3a6fe29b764804a5a9d641c3da1b017a3d3b /dwm.c
parent440c4a6efa789f41213d78ea564087ffdb65bafd (diff)
downloaddwm-flexipatch-82c72835f62132bb6ab62ad0d4b237e85681d73c.tar.gz
dwm-flexipatch-82c72835f62132bb6ab62ad0d4b237e85681d73c.zip
restartsig + systray: allow systray icons to survive a restart by not destroying the systray window
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 02dea6b..6b1ce9c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -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);