Skip to content
Snippets Groups Projects
Commit b87b0168 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Jean-Baptiste Kempf
Browse files

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).
parent 1718facc
No related branches found
No related tags found
1 merge request!3465qt: fix interface geometry not restored after exiting fullscreen when `video-autoresize` is `true`
Pipeline #328508 passed with stage
in 18 minutes and 9 seconds
......@@ -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() );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment