glx: fix shutdown hang

This commit is contained in:
degasus 2014-08-25 07:33:51 +02:00
parent 7d05ebbc9b
commit 8b0ad5daec
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ Window cX11Window::CreateXWindow(Window parent, XVisualInfo *vi)
void cX11Window::DestroyXWindow(void)
{
XUnmapWindow(dpy, win);
win = 0;
if (xEventThread.joinable())
xEventThread.join();
XFreeColormap(dpy, colormap);