diff --git a/objects/wibox.c b/objects/wibox.c index ab62e7df..4c3c142a 100644 --- a/objects/wibox.c +++ b/objects/wibox.c @@ -62,8 +62,13 @@ wibox_wipe_resources(wibox_t *w) { if(w->window) { + int phys_screen = w->ctx.phys_screen; + /* Activate BMA */ client_ignore_enterleave_events(); + /* Make sure we don't accidentally kill the systray window */ + if(globalconf.screens.tab[phys_screen].systray.parent == w->window) + wibox_systray_kickout(phys_screen); xcb_destroy_window(globalconf.connection, w->window); /* Deactivate BMA */ client_restore_enterleave_events();