/* EOF received. Since i3 will restart i3bar instances as appropriate,
* we exit here. */
DLOG("EOF received, exiting...\n");
+ clean_xcb();
exit(EXIT_SUCCESS);
}
rec += n;
(char*)ev);
free(event);
+ /* Put the client inside the save set. Upon termination (whether
+ * killed or normal exit does not matter) of i3bar, these clients
+ * will be correctly reparented to their most closest living
+ * ancestor. Without this, tray icons might die when i3bar
+ * exits/crashes. */
+ xcb_change_save_set(xcb_connection, XCB_SET_MODE_INSERT, client);
+
if (map_it) {
DLOG("Mapping dock client\n");
xcb_map_window(xcb_connection, client);