changeset 33419:4f5becd31212

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.
author iive
date Sat, 28 May 2011 10:27:31 +0000
parents 20f1f02aebfc
children ab72da1e2a28
files libvo/x11_common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Fri May 27 13:55:20 2011 +0000
+++ b/libvo/x11_common.c	Sat May 28 10:27:31 2011 +0000
@@ -1132,11 +1132,11 @@
     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,