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:
@@ -111,6 +111,7 @@ removesystrayicon(Client *i)
|
||||
for (ii = &systray->icons; *ii && *ii != i; ii = &(*ii)->next);
|
||||
if (ii)
|
||||
*ii = i->next;
|
||||
XReparentWindow(dpy, i->win, root, 0, 0);
|
||||
free(i);
|
||||
drawbarwin(systray->bar);
|
||||
}
|
||||
|
Reference in New Issue
Block a user