1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 06:25:37 -05:00

Add niri overview toggle on launcher button rightclick. (#394)

This commit is contained in:
Body
2025-10-12 12:38:55 +01:00
committed by GitHub
parent 46fd0ae413
commit 50fde1e308
2 changed files with 12 additions and 1 deletions

View File

@@ -30,8 +30,15 @@ Item {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.LeftButton
acceptedButtons: Qt.LeftButton | Qt.RightButton
onPressed: {
if (mouse.button === Qt.RightButton) {
if (CompositorService.isNiri) {
NiriService.toggleOverview()
}
return
}
root.clicked();
if (popupTarget && popupTarget.setTriggerPosition) {
const globalPos = mapToGlobal(0, 0);