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; } }