summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--video.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}