Mercurial > mplayer.hg
changeset 33949:ee2bcd643829
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.
author | ib |
---|---|
date | Thu, 01 Sep 2011 17:53:33 +0000 |
parents | 8a76f05418f9 |
children | bb35e74851cd |
files | gui/ui/main.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/main.c Thu Sep 01 17:31:46 2011 +0000 +++ b/gui/ui/main.c Thu Sep 01 17:53:33 2011 +0000 @@ -374,6 +374,11 @@ 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 );