mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:33:46 +01:00
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:
parent
01c5a73c53
commit
05c24134de
@ -788,6 +788,7 @@ void vo_x11_uninit(void)
|
|||||||
XEvent xev;
|
XEvent xev;
|
||||||
|
|
||||||
XUnmapWindow(mDisplay, vo_window);
|
XUnmapWindow(mDisplay, vo_window);
|
||||||
|
XSelectInput(mDisplay, vo_window, StructureNotifyMask);
|
||||||
XDestroyWindow(mDisplay, vo_window);
|
XDestroyWindow(mDisplay, vo_window);
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user