1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-11 14:59:38 -04:00

fix(RunningApps): add middle mouse click to close running applications in vertical orientation (#2386)

This commit is contained in:
Kostiantyn To
2026-05-11 16:21:45 +03:00
committed by GitHub
parent c7d44cfb12
commit b12511481d

View File

@@ -630,7 +630,7 @@ BasePill {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.LeftButton | Qt.RightButton
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
onPressed: mouse => {
const pos = mapToItem(visualContent, mouse.x, mouse.y);
itemRipple.trigger(pos.x, pos.y);
@@ -683,6 +683,12 @@ BasePill {
windowContextMenuLoader.item.showAt(relativeX, yPos, false, root.axis?.edge);
}
}
} else if (mouse.button === Qt.MiddleButton) {
if (toplevelObject) {
if (typeof toplevelObject.close === "function") {
toplevelObject.close();
}
}
}
}
onEntered: {