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

ib subversion at mplayerhq.hu
Thu Sep 1 20:32:33 CEST 2011


Author: ib
Date: Thu Sep  1 20:32:33 2011
New Revision: 34042

Log:
Some cosmetic changes in wsFullScreen().

Place vo_x11_ewmh_fullscreen() statements before non-EWMH statements
and set isFullScreen flag right after state has been changed.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Thu Sep  1 20:22:58 2011	(r34041)
+++ trunk/gui/wm/ws.c	Thu Sep  1 20:32:33 2011	(r34042)
@@ -900,12 +900,14 @@ void wsFullScreen(wsTWindow *win)
             decoration  = win->Decorations;
         }
 
+        win->isFullScreen = False;
+
 #ifdef ENABLE_DPMS
         wsScreenSaverOn(wsDisplay);
 #endif
-
-        win->isFullScreen = False;
     } else {
+        vo_x11_ewmh_fullscreen(win->WindowID, _NET_WM_STATE_ADD); // adds fullscreen state if wm supports EWMH
+
         if (!(vo_fs_type & vo_wm_FULLSCREEN)) { // shouldn't be needed with EWMH fs
             win->OldX      = win->X;
             win->OldY      = win->Y;
@@ -931,11 +933,10 @@ void wsFullScreen(wsTWindow *win)
         }
 
         win->isFullScreen = True;
+
 #ifdef ENABLE_DPMS
         wsScreenSaverOff(wsDisplay);
 #endif
-
-        vo_x11_ewmh_fullscreen(win->WindowID, _NET_WM_STATE_ADD); // adds fullscreen state if wm supports EWMH
     }
 
     if (!(vo_fs_type & vo_wm_FULLSCREEN)) { // shouldn't be needed with EWMH fs


More information about the MPlayer-cvslog mailing list