From d2a29506aa8a4c6d9355fb133aabdb34c08e1c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro?= <68470515+BlackCherryCat@users.noreply.github.com> Date: Tue, 25 Nov 2025 22:21:01 +0100 Subject: [PATCH] Add middle-click close and collapse popout (#813) * Add middle-click close and collapse popout * Revert ControlCenterPopout --- quickshell/Modules/DankBar/Widgets/RunningApps.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: {