diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index ab59209de..671588fe5 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -1532,7 +1532,6 @@ void clean_xcb(void) { free_font(); xcb_free_cursor(xcb_connection, cursor); - xcb_flush(xcb_connection); xcb_aux_sync(xcb_connection); xcb_disconnect(xcb_connection); diff --git a/src/restore_layout.c b/src/restore_layout.c index 78f0e0975..6f35d1653 100644 --- a/src/restore_layout.c +++ b/src/restore_layout.c @@ -134,7 +134,6 @@ static void update_placeholder_contents(placeholder_state *state) { draw_util_clear_surface(&(state->surface), background); // TODO: make i3font functions per-connection, at least these two for now…? - xcb_flush(restore_conn); xcb_aux_sync(restore_conn); Match *swallows; @@ -180,7 +179,6 @@ static void update_placeholder_contents(placeholder_state *state) { int y = (state->rect.height / 2) - (config.font.height / 2); draw_util_text(line, &(state->surface), foreground, background, x, y, text_width); i3string_free(line); - xcb_flush(restore_conn); xcb_aux_sync(restore_conn); }