[vlc-commits] qt: FSC: Fix and simplify FSC/screen geometry check

Hugo Beauzée-Luyssen git at videolan.org
Wed Mar 21 09:56:58 CET 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Mar 20 17:23:18 2018 +0100| [5cca746e2767db3624d3dcbb7bc5a66a6e221fb9] | committer: Hugo Beauzée-Luyssen

qt: FSC: Fix and simplify FSC/screen geometry check

The previous version was assuming a virtual desktop to be used, while we
had the targetted screen rectangle already computed

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5cca746e2767db3624d3dcbb7bc5a66a6e221fb9
---

 modules/gui/qt/components/controller.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/controller.cpp b/modules/gui/qt/components/controller.cpp
index e9ffdd17f1..bd71e96051 100644
--- a/modules/gui/qt/components/controller.cpp
+++ b/modules/gui/qt/components/controller.cpp
@@ -888,7 +888,7 @@ void FullscreenControllerWidget::restoreFSC()
         }
 
         if( currentRes == screenRes &&
-            QApplication::desktop()->screen()->geometry().contains( previousPosition, true ) )
+            currentRes.contains( previousPosition, true ) )
         {
             /* Restore to the last known position */
             move( previousPosition );



More information about the vlc-commits mailing list