changeset 30718:4993c3f12cc0

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.
author reimar
date Sat, 27 Feb 2010 17:55:57 +0000
parents c81fe45b1624
children 6f9652891876
files libvo/x11_common.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Sat Feb 27 12:48:11 2010 +0000
+++ b/libvo/x11_common.c	Sat Feb 27 17:55:57 2010 +0000
@@ -788,6 +788,7 @@
                 XEvent xev;
 
                 XUnmapWindow(mDisplay, vo_window);
+                XSelectInput(mDisplay, vo_window, StructureNotifyMask);
                 XDestroyWindow(mDisplay, vo_window);
                 do
                 {