--- i3bar/src/xcb.c	2020-08-02 16:58:41.380000000 +0200
+++ i3bar/src/xcb.c	2020-08-02 17:02:25.800000000 +0200
@@ -1652,6 +1652,8 @@
         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));
