changeset 36377:b7e306c04a3f

Fix hang if uninit is called while the window is still hidden.
author reimar
date Thu, 17 Oct 2013 00:07:12 +0000
parents 449dd308d5c6
children 939ec5ba0c58
files libvo/x11_common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Wed Oct 16 19:18:48 2013 +0000
+++ b/libvo/x11_common.c	Thu Oct 17 00:07:12 2013 +0000
@@ -778,7 +778,7 @@
         if (vo_window != None)
         {
             XClearWindow(mDisplay, vo_window);
-            if (WinID < 0)
+            if (WinID < 0 && vo_window != mRootWin)
             {
                 XEvent xev;