feat(dock): toggle compositor overview on launcher button right-click (#3694)

This commit is contained in:
Huỳnh Thiện Lộc
2026-10-04 21:45:39 -04:00
committed by GitHub
parent 2b01926e31
commit d2942a4dbf
+12 -2
View File
@@ -20,14 +20,24 @@ Item {
PopoutService.toggleDankLauncherV2();
}
function secondaryActivate() {
CompositorService.toggleOverview(root.dockApps?.surfaceContext?.screen?.name);
}
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.LeftButton
onClicked: root.activate()
acceptedButtons: Qt.LeftButton | Qt.RightButton
onClicked: mouse => {
if (mouse.button === Qt.RightButton) {
root.secondaryActivate();
} else {
root.activate();
}
}
}
property real indicatorLane: 0