From 0cbd933e71a1307f7a85cc0090bc07880b8912be Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Mon, 13 Apr 2026 11:16:08 +0200 Subject: [PATCH] Add middle-click to close running dock tasks Middle-click on a running task in the dock now closes it, matching standard desktop taskbar behavior. --- containments/homescreens/folio/qml/FavouritesBar.qml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/containments/homescreens/folio/qml/FavouritesBar.qml b/containments/homescreens/folio/qml/FavouritesBar.qml index 4edf2f05..160a4eb7 100644 --- a/containments/homescreens/folio/qml/FavouritesBar.qml +++ b/containments/homescreens/folio/qml/FavouritesBar.qml @@ -812,13 +812,18 @@ MouseArea { } } - // Click to activate, hover for thumbnail preview + // Click to activate, middle-click to close, hover for thumbnail preview MouseArea { id: taskMouseArea anchors.fill: parent hoverEnabled: true - acceptedButtons: Qt.LeftButton | Qt.RightButton + acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton onClicked: (mouse) => { + if (mouse.button === Qt.MiddleButton) { + thumbnailPopup.close() + tasksModel.requestClose(tasksModel.makeModelIndex(taskDelegate.index)); + return + } if (mouse.button === Qt.RightButton) { thumbnailPopup.close() thumbnailShowTimer.stop()