From: Orestis Date: Sat, 8 Dec 2018 12:49:04 +0000 (+0200) Subject: Merge pull request #3547 from stapelberg/conn X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b192bf4bd2c98d90c457baf5396fee74529ff020;hp=620e90bed84d44b9a6a7b2c397c961f247538c01;p=i3%2Fi3 Merge pull request #3547 from stapelberg/conn Bugfix: use restore_conn, not conn --- diff --git a/src/restore_layout.c b/src/restore_layout.c index b99a50c1..9f19a690 100644 --- a/src/restore_layout.c +++ b/src/restore_layout.c @@ -180,8 +180,8 @@ 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(conn); - xcb_aux_sync(conn); + xcb_flush(restore_conn); + xcb_aux_sync(restore_conn); } static void open_placeholder_window(Con *con) { @@ -221,7 +221,7 @@ static void open_placeholder_window(Con *con) { state->con = con; state->rect = con->rect; - draw_util_surface_init(conn, &(state->surface), placeholder, get_visualtype(root_screen), state->rect.width, state->rect.height); + draw_util_surface_init(restore_conn, &(state->surface), placeholder, get_visualtype(root_screen), state->rect.width, state->rect.height); update_placeholder_contents(state); TAILQ_INSERT_TAIL(&state_head, state, state);