[vlc-commits] [Git][videolan/vlc][master] qml/CSDMouseStealer: Avoid hover and click when maximized or fullscreen
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Thu Oct 21 10:45:57 UTC 2021
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
e2c81a8a by Benjamin Arnaud at 2021-10-21T09:58:49+00:00
qml/CSDMouseStealer: Avoid hover and click when maximized or fullscreen
fix #26161
- - - - -
2 changed files:
- modules/gui/qt/maininterface/qml/MainInterface.qml
- modules/gui/qt/widgets/qml/CSDMouseStealer.qml
Changes:
=====================================
modules/gui/qt/maininterface/qml/MainInterface.qml
=====================================
@@ -19,6 +19,8 @@
import QtQuick 2.11
import QtQuick.Layouts 1.11
import QtQuick.Controls 2.4
+import QtQuick.Window 2.15
+
import org.videolan.vlc 0.1
import "qrc:///widgets/" as Widgets
@@ -175,7 +177,11 @@ Rectangle {
}
Loader {
- active: mainInterface.clientSideDecoration
+ active: (mainInterface.clientSideDecoration
+ &&
+ // NOTE: We don't want to steal the mouse when we are maximized or in fullscreen
+ !((topWindow.visibility & Window.Maximized) || mainInterface.interfaceFullScreen))
+
source: "qrc:///widgets/CSDMouseStealer.qml"
}
}
=====================================
modules/gui/qt/widgets/qml/CSDMouseStealer.qml
=====================================
@@ -57,8 +57,7 @@ Item {
width: modelData.width
height: modelData.height
- // NOTE: We don't want to steal the mouse when we are maximized or in fullscreen.
- hoverEnabled: (!(topWindow.visibility & Window.Maximized) && !(mainInterface.interfaceFullScreen))
+ hoverEnabled: true
}
}
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e2c81a8afa8f80fb9db8bdf2a2db775e6cf49fb9
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e2c81a8afa8f80fb9db8bdf2a2db775e6cf49fb9
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list