JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
xcb_disconnect into restart
[spectrwm.git] / spectrwm.c
index 4c8387f..546fd57 100644 (file)
@@ -2306,6 +2306,7 @@ restart(struct swm_region *r, union arg *args)
        bar_extra = 1;
        unmap_all();
        xcb_flush(conn);
+       xcb_disconnect(conn);
 
        execvp(start_argv[0], start_argv);
        warn("execvp failed");
@@ -6474,7 +6475,6 @@ manage_window(xcb_window_t id)
 
        /* Get all the window data in one shot */
        ws_idx_atom = get_atom_from_string("_SWM_WS");
-       fprintf(stderr, "ws_idx_atom: %d\n", ws_idx_atom);
        if (ws_idx_atom) {
                gpr = xcb_get_property_reply(conn,
                        xcb_get_property(conn, False, id, ws_idx_atom,