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