# HG changeset patch # User reimar # Date 1267293357 0 # Node ID 4993c3f12cc03786a5a4969bc94eab7cfdd0d30b # Parent c81fe45b1624d39da480f2d4da1125680aeb716b 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. diff -r c81fe45b1624 -r 4993c3f12cc0 libvo/x11_common.c --- 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 {