glx: fix shutdown hang
This commit is contained in:
parent
7d05ebbc9b
commit
8b0ad5daec
|
@ -46,6 +46,7 @@ Window cX11Window::CreateXWindow(Window parent, XVisualInfo *vi)
|
||||||
void cX11Window::DestroyXWindow(void)
|
void cX11Window::DestroyXWindow(void)
|
||||||
{
|
{
|
||||||
XUnmapWindow(dpy, win);
|
XUnmapWindow(dpy, win);
|
||||||
|
win = 0;
|
||||||
if (xEventThread.joinable())
|
if (xEventThread.joinable())
|
||||||
xEventThread.join();
|
xEventThread.join();
|
||||||
XFreeColormap(dpy, colormap);
|
XFreeColormap(dpy, colormap);
|
||||||
|
|
Loading…
Reference in New Issue