fix(bar): swallow right/middle on hot strip to avoid Qt context-menu SIGSEGV

This commit is contained in:
Lysec
2026-04-19 09:22:16 +02:00
parent b452772feb
commit ccb04bf01d
2 changed files with 51 additions and 5 deletions
+13
View File
@@ -45,6 +45,19 @@ PanelWindow {
id: triggerArea
anchors.fill: parent
hoverEnabled: true
// Default MouseArea only accepts left; right/middle would fall through to Qt Quick's
// Wayland context-menu delivery, which can SIGSEGV in contextMenuTargets/mapToScene.
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
onPressed: function (mouse) {
if (mouse.button === Qt.RightButton || mouse.button === Qt.MiddleButton)
mouse.accepted = true;
}
onClicked: function (mouse) {
if (mouse.button === Qt.RightButton || mouse.button === Qt.MiddleButton)
mouse.accepted = true;
}
onEntered: {
if (root.isBeingDestroyed)