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

ib subversion at mplayerhq.hu
Fri Sep 9 15:46:11 CEST 2011


Author: ib
Date: Fri Sep  9 15:46:11 2011
New Revision: 34089

Log:
Place XWithdrawWindow() before window decor changes in wsFullScreen().

This is like in vo_x11_fullscreen() and is said to avoid an additional
window refresh.

Additionally, add a comment.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Fri Sep  9 15:34:55 2011	(r34088)
+++ trunk/gui/wm/ws.c	Fri Sep  9 15:46:11 2011	(r34089)
@@ -963,6 +963,11 @@ void wsFullScreen(wsTWindow *win)
 #endif
     }
 
+    /* unknown window manager and obsolete option -fsmode used */
+    if (vo_wm_type == 0 && !(vo_fsmode & 16)) {
+        XWithdrawWindow(wsDisplay, win->WindowID, wsScreen);
+    }
+
     if (!(vo_fs_type & vo_wm_FULLSCREEN)) { // shouldn't be needed with EWMH fs
         vo_x11_decoration(wsDisplay, win->WindowID, win->Decorations && !win->isFullScreen);
         vo_x11_sizehint(win->X, win->Y, win->Width, win->Height, 0);
@@ -974,10 +979,6 @@ void wsFullScreen(wsTWindow *win)
         XMoveResizeWindow(wsDisplay, win->WindowID, win->X, win->Y, win->Width, win->Height);
     }
 
-    if (vo_wm_type == 0 && !(vo_fsmode & 16)) {
-        XWithdrawWindow(wsDisplay, win->WindowID, wsScreen);
-    }
-
     wsRaiseWindowTop(wsDisplay, win->WindowID);
     XFlush(wsDisplay);
 }


More information about the MPlayer-cvslog mailing list