diff --git a/quickshell/Modules/DankBar/Widgets/RunningApps.qml b/quickshell/Modules/DankBar/Widgets/RunningApps.qml index 0c8fc425..35fbc734 100644 --- a/quickshell/Modules/DankBar/Widgets/RunningApps.qml +++ b/quickshell/Modules/DankBar/Widgets/RunningApps.qml @@ -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: {