1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

Add middle-click close and collapse popout (#813)

* Add middle-click close and collapse popout

* Revert ControlCenterPopout
This commit is contained in:
Álvaro
2025-11-25 22:21:01 +01:00
committed by GitHub
parent adf51d5264
commit d2a29506aa

View File

@@ -458,7 +458,7 @@ Item {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.LeftButton | Qt.RightButton
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
onClicked: mouse => {
if (mouse.button === Qt.LeftButton) {
if (isGrouped && windowCount > 1) {
@@ -505,6 +505,12 @@ Item {
windowContextMenuLoader.item.showAt(relativeX, yPos, false, "top");
}
}
} else if (mouse.button === Qt.MiddleButton) {
if (toplevelObject) {
if (typeof toplevelObject.close === "function") {
toplevelObject.close();
}
}
}
}
onEntered: {