From 141eb5cf713de877046a1a671cb1a6ba5f8291d3 Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 29 Oct 2012 17:24:58 +0100 Subject: [PATCH] Flush X11 output buffer before close. --- video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video.c b/video.c index 55808af..0741e7f 100644 --- a/video.c +++ b/video.c @@ -10598,11 +10598,13 @@ void VideoExit(void) xcb_free_pixmap(Connection, VideoCursorPixmap); VideoCursorPixmap = XCB_NONE; } + xcb_flush(Connection); if (XlibDisplay) { if (XCloseDisplay(XlibDisplay)) { Error(_("video: error closing display\n")); } XlibDisplay = NULL; + Connection = 0; } }