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