[vlc-commits] [Git][videolan/vlc][master] qml/CSDMouseSteal: Disable hover for maximized and fullscreen

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Tue Sep 28 14:34:56 UTC 2021



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
ff6e1d64 by Benjamin Arnaud at 2021-09-28T14:07:23+00:00
qml/CSDMouseSteal: Disable hover for maximized and fullscreen

fix #26098

- - - - -


1 changed file:

- modules/gui/qt/widgets/qml/CSDMouseStealer.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/CSDMouseStealer.qml
=====================================
@@ -17,6 +17,7 @@
  *****************************************************************************/
 
 import QtQuick 2.15
+import QtQuick.Window 2.15
 
 Item {
     parent: g_root
@@ -52,9 +53,12 @@ Item {
         delegate: MouseArea {
             x: modelData.x
             y: modelData.y
+
             width: modelData.width
             height: modelData.height
-            hoverEnabled: true
+
+            // NOTE: We don't want to steal the mouse when we are maximized or in fullscreen.
+            hoverEnabled: (!(topWindow.visibility & Window.Maximized) && !(mainInterface.interfaceFullScreen))
         }
     }
 }



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

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




More information about the vlc-commits mailing list