Flush X11 output buffer before close.

This commit is contained in:
Johns 2012-10-29 17:24:58 +01:00
parent a9e664ac52
commit 141eb5cf71
1 changed files with 2 additions and 0 deletions

View File

@ -10598,11 +10598,13 @@ void VideoExit(void)
xcb_free_pixmap(Connection, VideoCursorPixmap); xcb_free_pixmap(Connection, VideoCursorPixmap);
VideoCursorPixmap = XCB_NONE; VideoCursorPixmap = XCB_NONE;
} }
xcb_flush(Connection);
if (XlibDisplay) { if (XlibDisplay) {
if (XCloseDisplay(XlibDisplay)) { if (XCloseDisplay(XlibDisplay)) {
Error(_("video: error closing display\n")); Error(_("video: error closing display\n"));
} }
XlibDisplay = NULL; XlibDisplay = NULL;
Connection = 0;
} }
} }