[MPlayer-cvslog] r33507 - trunk/libvo/x11_common.c

iive subversion at mplayerhq.hu
Sat May 28 12:27:32 CEST 2011


Author: iive
Date: Sat May 28 12:27:31 2011
New Revision: 33507

Log:
Fix vo_x11 window background clearing.

In x11_common, wait for newly created window to be actually mapped
before trying to clear it. Otherwise the clear could be ignored.

Modified:
   trunk/libvo/x11_common.c

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	Fri May 27 15:55:20 2011	(r33506)
+++ trunk/libvo/x11_common.c	Sat May 28 12:27:31 2011	(r33507)
@@ -1132,11 +1132,11 @@ void vo_x11_create_vo_window(XVisualInfo
     if (!vo_border) vo_x11_decoration(mDisplay, vo_window, 0);
     // map window
     XMapWindow(mDisplay, vo_window);
-    vo_x11_clearwindow(mDisplay, vo_window);
     // wait for map
     do {
       XNextEvent(mDisplay, &xev);
     } while (xev.type != MapNotify || xev.xmap.event != vo_window);
+    vo_x11_clearwindow(mDisplay, vo_window);
     XSelectInput(mDisplay, vo_window, NoEventMask);
     XSync(mDisplay, False);
     vo_x11_selectinput_witherr(mDisplay, vo_window,


More information about the MPlayer-cvslog mailing list