mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-20 02:04:01 -04:00
feat(dock): toggle compositor overview on launcher button right-click (#3694)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user