wibox: reparent systray only if needed (FS#436)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
2406fe3e4d
commit
7a4bd63b0d
3
wibox.c
3
wibox.c
|
@ -101,6 +101,8 @@ wibox_systray_kickout(int phys_screen)
|
|||
{
|
||||
xcb_screen_t *s = xutil_screen_get(globalconf.connection, phys_screen);
|
||||
|
||||
if(globalconf.screens[phys_screen].systray.parent != s->root)
|
||||
{
|
||||
/* Who! Check that we're not deleting a wibox with a systray, because it
|
||||
* may be its parent. If so, we reparent to root before, otherwise it will
|
||||
* hurt very much. */
|
||||
|
@ -110,6 +112,7 @@ wibox_systray_kickout(int phys_screen)
|
|||
|
||||
globalconf.screens[phys_screen].systray.parent = s->root;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
wibox_systray_refresh(wibox_t *wibox)
|
||||
|
|
Loading…
Reference in New Issue