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

ib subversion at mplayerhq.hu
Fri Sep 9 16:07:15 CEST 2011


Author: ib
Date: Fri Sep  9 16:07:14 2011
New Revision: 34092

Log:
Cosmetic changes at ontop code in wsFullScreen().

Add comment, remove needless parentheses and replace
constant 1 by variable vo_ontop.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Fri Sep  9 15:57:19 2011	(r34091)
+++ trunk/gui/wm/ws.c	Fri Sep  9 16:07:14 2011	(r34092)
@@ -976,8 +976,9 @@ void wsFullScreen(wsTWindow *win)
         XMoveResizeWindow(wsDisplay, win->WindowID, win->X, win->Y, win->Width, win->Height);
     }
 
-    if ((!(win->isFullScreen)) & vo_ontop)
-        vo_x11_setlayer(wsDisplay, win->WindowID, 1);
+    /* some window managers lose ontop after fullscreen */
+    if (!win->isFullScreen & vo_ontop)
+        vo_x11_setlayer(wsDisplay, win->WindowID, vo_ontop);
 
     wsRaiseWindowTop(wsDisplay, win->WindowID);
     XFlush(wsDisplay);


More information about the MPlayer-cvslog mailing list