kick tray clients before destroying the bar
This commit is contained in:
@ -1613,6 +1613,8 @@ void destroy_window(i3_output *output) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kick_tray_clients(output);
|
||||||
|
|
||||||
draw_util_surface_free(xcb_connection, &(output->bar));
|
draw_util_surface_free(xcb_connection, &(output->bar));
|
||||||
draw_util_surface_free(xcb_connection, &(output->buffer));
|
draw_util_surface_free(xcb_connection, &(output->buffer));
|
||||||
draw_util_surface_free(xcb_connection, &(output->statusline_buffer));
|
draw_util_surface_free(xcb_connection, &(output->statusline_buffer));
|
||||||
@ -1620,8 +1622,6 @@ void destroy_window(i3_output *output) {
|
|||||||
xcb_free_pixmap(xcb_connection, output->buffer.id);
|
xcb_free_pixmap(xcb_connection, output->buffer.id);
|
||||||
xcb_free_pixmap(xcb_connection, output->statusline_buffer.id);
|
xcb_free_pixmap(xcb_connection, output->statusline_buffer.id);
|
||||||
output->bar.id = XCB_NONE;
|
output->bar.id = XCB_NONE;
|
||||||
|
|
||||||
kick_tray_clients(output);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Strut partial tells i3 where to reserve space for i3bar. This is determined
|
/* Strut partial tells i3 where to reserve space for i3bar. This is determined
|
||||||
|
Reference in New Issue
Block a user