[vlc-commits] [Git][videolan/vlc][master] qt: preserve interface window geometry in all cases

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Apr 1 18:20:26 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
b87b0168 by Fatih Uzunoglu at 2023-04-01T18:03:56+00:00
qt: preserve interface window geometry in all cases

preserve the interface geometry when going into fullscreen,
in order to restore it later (when exiting the fullscreen
mode).

- - - - -


1 changed file:

- modules/gui/qt/maininterface/video_window_handler.cpp


Changes:

=====================================
modules/gui/qt/maininterface/video_window_handler.cpp
=====================================
@@ -119,6 +119,8 @@ void VideoWindowHandler::setVideoFullScreen( bool fs )
     m_videoFullScreen = fs;
     if( fs )
     {
+        m_lastWinGeometry = m_window->geometry();
+
         int numscreen = var_InheritInteger( m_intf, "qt-fullscreen-screennumber" );
 
         auto screenList = QApplication::screens();
@@ -135,7 +137,6 @@ void VideoWindowHandler::setVideoFullScreen( bool fs )
             /* To be sure window is on proper-screen in xinerama */
             if( !screenres.contains( m_window->position() ) )
             {
-                m_lastWinGeometry = m_window->geometry();
                 m_window->setPosition(screenres.x(), screenres.y() );
             }
         }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b87b016859f9e5a6163db17976cb719eaa9bc87c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b87b016859f9e5a6163db17976cb719eaa9bc87c
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list