From 82c72835f62132bb6ab62ad0d4b237e85681d73c Mon Sep 17 00:00:00 2001 From: bakkeby Date: Fri, 17 Jun 2022 16:13:10 +0200 Subject: [PATCH] restartsig + systray: allow systray icons to survive a restart by not destroying the systray window --- dwm.c | 3 +++ 1 file changed, 3 insertions(+) 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);