[MPlayer-cvslog] r36395 - trunk/gui/wm/ws.c

ib subversion at mplayerhq.hu
Sat Aug 3 00:42:05 CEST 2013


Author: ib
Date: Sat Aug  3 00:42:05 2013
New Revision: 36395

Log:
Add a XSync() call.

This will avoid some unpleasant visual effects
because of the transparent background to come.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Sat Aug  3 00:40:25 2013	(r36394)
+++ trunk/gui/wm/ws.c	Sat Aug  3 00:42:05 2013	(r36395)
@@ -1079,9 +1079,10 @@ void wsWindowBackground(wsWindow *win, i
         ;
     }
 
-    if (r == -1 && g == -1 && b == -1)
+    if (r == -1 && g == -1 && b == -1) {
+        XSync(wsDisplay, False);
         XSetWindowBackgroundPixmap(wsDisplay, win->WindowID, None);
-    else {
+    } else {
         XSetWindowBackground(wsDisplay, win->WindowID, color);
         XClearWindow(wsDisplay, win->WindowID);
     }


More information about the MPlayer-cvslog mailing list