[MPlayer-cvslog] r34037 - trunk/gui/ui/main.c

ib subversion at mplayerhq.hu
Thu Sep 1 19:53:33 CEST 2011


Author: ib
Date: Thu Sep  1 19:53:33 2011
New Revision: 34037

Log:
Resize video window after switching from fullscreen to normal size.

The _NETWM_STATE_FULLSCREEN EWMH restores the original geometry
which differs from the original size of the video if fullscreen
has already been active at playback time.

Modified:
   trunk/gui/ui/main.c

Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c	Thu Sep  1 19:31:46 2011	(r34036)
+++ trunk/gui/ui/main.c	Thu Sep  1 19:53:33 2011	(r34037)
@@ -374,6 +374,11 @@ set_volume:
         if ( guiInfo.VideoWindow && guiInfo.Playing )
          {
         uiFullScreen();
+        if ( !guiApp.subWindow.isFullScreen )
+         {
+          wsResizeWindow( &guiApp.subWindow, guiInfo.VideoWidth, guiInfo.VideoHeight );
+          wsMoveWindow( &guiApp.subWindow, True, guiApp.sub.x, guiApp.sub.y );
+         }
          }
 	if ( guiApp.subWindow.isFullScreen ) btnSet( evFullScreen,btnPressed );
 	 else btnSet( evFullScreen,btnReleased );


More information about the MPlayer-cvslog mailing list