mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-12 07:19:41 -04:00
fix(RunningApps): add middle mouse click to close running applications in vertical orientation (#2386)
This commit is contained in:
@@ -630,7 +630,7 @@ BasePill {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
||||||
onPressed: mouse => {
|
onPressed: mouse => {
|
||||||
const pos = mapToItem(visualContent, mouse.x, mouse.y);
|
const pos = mapToItem(visualContent, mouse.x, mouse.y);
|
||||||
itemRipple.trigger(pos.x, pos.y);
|
itemRipple.trigger(pos.x, pos.y);
|
||||||
@@ -683,6 +683,12 @@ BasePill {
|
|||||||
windowContextMenuLoader.item.showAt(relativeX, yPos, false, root.axis?.edge);
|
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: {
|
onEntered: {
|
||||||
|
|||||||
Reference in New Issue
Block a user