diff options
author | Mark Guptill <compguy284@yahoo.com> | 2020-06-30 04:34:32 -0400 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2020-10-19 09:45:51 +0200 |
commit | 654e2cefa6effa10170977e6f5b1f065b75e9d3f (patch) | |
tree | 99dee335dd23d9eb52fc14f40ee6c8f1d08e4692 | |
parent | 5af9ea65fecfd402483c99b230758449d5449589 (diff) | |
download | i3-654e2cefa6effa10170977e6f5b1f065b75e9d3f.tar.gz i3-654e2cefa6effa10170977e6f5b1f065b75e9d3f.zip |
kick tray clients before destroying the bar
-rw-r--r-- | i3bar/src/xcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index ec069021..a01e31ea 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -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 |