Mercurial > mplayer.hg
changeset 36299:f5e428d7991b
Add a XSync() call.
This will avoid some unpleasant visual effects
because of the transparent background to come.
author | ib |
---|---|
date | Fri, 02 Aug 2013 22:42:05 +0000 |
parents | 353055b6213d |
children | b14b9f22d7ea |
files | gui/wm/ws.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/wm/ws.c Fri Aug 02 22:40:25 2013 +0000 +++ b/gui/wm/ws.c Fri Aug 02 22:42:05 2013 +0000 @@ -1079,9 +1079,10 @@ ; } - 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); }