aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-31 13:28:50 -0400
committeremersion <contact@emersion.fr>2018-03-31 13:28:50 -0400
commit37aae0b2cdebeba10f141b8646886614e1646530 (patch)
treec5e5eba6b178f16e86c4f452219466cf405124ad
parent96c6091f802c803ccd6c7acd3e1165f6a8d4da2d (diff)
backend/x11: flush after destroying window
Otherwise the destroy message is kept buffered and never reaches the X11 server. Thanks X11.
-rw-r--r--backend/x11/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c
index 9e7424d8..4ccabd51 100644
--- a/backend/x11/output.c
+++ b/backend/x11/output.c
@@ -52,6 +52,7 @@ static void output_destroy(struct wlr_output *wlr_output) {
wl_event_source_remove(output->frame_timer);
eglDestroySurface(x11->egl.display, output->surf);
xcb_destroy_window(x11->xcb_conn, output->win);
+ xcb_flush(x11->xcb_conn);
free(output);
}