[vlc-devel] [PATCH] fix for fullscreen issue under xfce

Laurent Aimar fenrir at elivagar.org
Mon May 7 22:24:17 CEST 2012


Hi,

On Mon, May 07, 2012 at 10:15:08PM +0200, Lars Mueller wrote:
> ---
>  modules/gui/qt4/main_interface.cpp |   12 ++++++++++--
>  modules/gui/qt4/main_interface.hpp |    1 +
>  2 files changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/modules/gui/qt4/main_interface.cpp
> b/modules/gui/qt4/main_interface.cpp
> index db3a12d..0b34647 100644
> --- a/modules/gui/qt4/main_interface.cpp
> +++ b/modules/gui/qt4/main_interface.cpp
> @@ -252,6 +252,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf
> ) : QVLCMW( _p_intf )
>      /* Switch to minimal view if needed, must be called after the
> show() */
>      if( b_minimalView )
>          toggleMinimalView( true );
> +    +    stateBeforeFullScreen = windowState();
>  }
>   MainInterface::~MainInterface()
> @@ -1336,9 +1338,15 @@ void MainInterface::closeEvent( QCloseEvent *e )
>  void MainInterface::setInterfaceFullScreen( bool fs )
>  {
>      if( fs )
> -        setWindowState( windowState() | Qt::WindowFullScreen );
> +    {
> +        stateBeforeFullScreen = windowState();
> +        showFullScreen();
> +    }
>      else
> -        setWindowState( windowState() & ~Qt::WindowFullScreen );
> +    {
> +        showNormal(); /* maximizing directly from fullscreen doesn't
> necessarily work with all X11 window managers */
> +        setWindowState(stateBeforeFullScreen);
> +    }
 What is the issue you are seeing? (I use XFCE too but I didn't see any issues
with fullscreen and VLC).

Regards,

-- 
fenrir



More information about the vlc-devel mailing list