Enable StructureNotifyMask before waiting for a DestroyNotify event.

Fixes hangs if OpenGL initialization fails in vo gl preinit and we
call uninit while the window is still hidden.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30760 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-02-27 17:55:57 +00:00
parent 01c5a73c53
commit 05c24134de
1 changed files with 1 additions and 0 deletions

View File

@ -788,6 +788,7 @@ void vo_x11_uninit(void)
XEvent xev;
XUnmapWindow(mDisplay, vo_window);
XSelectInput(mDisplay, vo_window, StructureNotifyMask);
XDestroyWindow(mDisplay, vo_window);
do
{