From 05c24134de2923762a718b4e1c31c60131d46124 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 27 Feb 2010 17:55:57 +0000 Subject: [PATCH] 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 --- libvo/x11_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libvo/x11_common.c b/libvo/x11_common.c index c0278caa42..5c21fee975 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -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 {