diff --git a/modules/gui/qt/maininterface/video_window_handler.cpp b/modules/gui/qt/maininterface/video_window_handler.cpp index bd78dbe6a59c..1241c3a1aff9 100644 --- a/modules/gui/qt/maininterface/video_window_handler.cpp +++ b/modules/gui/qt/maininterface/video_window_handler.cpp @@ -119,8 +119,6 @@ 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(); @@ -141,15 +139,10 @@ void VideoWindowHandler::setVideoFullScreen( bool fs ) } else { - bool hold = WindowStateHolder::holdFullscreen(m_window, WindowStateHolder::VIDEO, false); + WindowStateHolder::holdFullscreen(m_window, WindowStateHolder::VIDEO, false); if( m_lastWinScreen != NULL && !m_hasWayland ) m_window->setScreen(m_lastWinScreen); - if( !hold && m_lastWinGeometry.isNull() == false ) - { - m_window->setGeometry( m_lastWinGeometry ); - m_lastWinGeometry = QRect(); - } } } diff --git a/modules/gui/qt/maininterface/video_window_handler.hpp b/modules/gui/qt/maininterface/video_window_handler.hpp index 8a803e2477df..fbba6ae1c310 100644 --- a/modules/gui/qt/maininterface/video_window_handler.hpp +++ b/modules/gui/qt/maininterface/video_window_handler.hpp @@ -65,7 +65,6 @@ protected slots: bool m_videoFullScreen = false; bool m_autoresize = false; - QRect m_lastWinGeometry; QScreen* m_lastWinScreen = nullptr; bool m_hasWayland = false;