Merge pull request #4147 from compguy284/kick_tray_clients

kick tray clients before destroying the bar
This commit is contained in:
Orestis Floros 2020-06-30 11:19:36 +02:00 committed by GitHub
commit e674073027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1613,6 +1613,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));
@ -1620,8 +1622,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