Fix a brown paper bag bug in d7d70714d7
I cherry-picked this commit from master and there was a conflict. I fixed this up by hand and apparently failed here. Instead of first saving the systray window and then destroying the wibox, this first destroyed the wibox and then tried to save the systray, but it was already destroyed in the previous step. Just swapping these two calls fixes this. Thanks to anrxc for making me notice how much I fail. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
312094ace3
commit
b90aa39dc9
2
wibox.c
2
wibox.c
|
@ -696,10 +696,10 @@ wibox_wipe(wibox_t *w)
|
|||
|
||||
/* Activate BMA */
|
||||
client_ignore_enterleave_events();
|
||||
xcb_destroy_window(globalconf.connection, w->window);
|
||||
/* 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();
|
||||
w->window = XCB_NONE;
|
||||
|
|
Loading…
Reference in New Issue