vcl/qt5/QtFrame.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit a3fb32f077f36ac0647f3ca8aba51304ad045939
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Tue Jan 14 15:21:50 2025 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Wed Jan 15 10:10:50 2025 +0100

    qt: Set fullscreen directly via QWidget
    
    There's no need to go via the widget's
    QWindow by calling QtFrame::windowHandle
    which would force setting the
    Qt::WA_NativeWindow attribute as well.
    
    Change-Id: Ibd3941c47361007f34a1f6aaf995adb866aac59b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180242
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/vcl/qt5/QtFrame.cxx b/vcl/qt5/QtFrame.cxx
index c52b26e4c4eb..b8312735a098 100644
--- a/vcl/qt5/QtFrame.cxx
+++ b/vcl/qt5/QtFrame.cxx
@@ -717,14 +717,14 @@ void QtFrame::ShowFullScreen(bool bFullScreen, sal_Int32 
nScreen)
         m_nRestoreScreen = std::max(sal_Int32(0), screenNumber());
         SetScreenNumber(m_bFullScreenSpanAll ? m_nRestoreScreen : nScreen);
         if (!m_bFullScreenSpanAll)
-            windowHandle()->showFullScreen();
+            m_pTopLevel->showFullScreen();
         else
-            windowHandle()->showNormal();
+            m_pTopLevel->showNormal();
     }
     else
     {
         SetScreenNumber(m_nRestoreScreen);
-        windowHandle()->showNormal();
+        m_pTopLevel->showNormal();
         m_pTopLevel->setGeometry(m_aRestoreGeometry);
     }
 }

Reply via email to