kick tray clients before destroying the bar

This commit is contained in:
Mark Guptill 2020-06-30 04:34:32 -04:00 committed by Michael Stapelberg
parent 5af9ea65fe
commit 654e2cefa6

View File

@ -1652,6 +1652,8 @@ void destroy_window(i3_output *output) {
return;
}
kick_tray_clients(output);
draw_util_surface_free(xcb_connection, &(output->bar));
draw_util_surface_free(xcb_connection, &(output->buffer));
draw_util_surface_free(xcb_connection, &(output->statusline_buffer));
@ -1659,8 +1661,6 @@ void destroy_window(i3_output *output) {
xcb_free_pixmap(xcb_connection, output->buffer.id);
xcb_free_pixmap(xcb_connection, output->statusline_buffer.id);
output->bar.id = XCB_NONE;
kick_tray_clients(output);
}
/* Strut partial tells i3 where to reserve space for i3bar. This is determined