From 96a8980861805a95c1e80d1729dce2fbe1fff33f Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Thu, 15 Sep 2022 06:37:43 +0300 Subject: [PATCH] effects/Overview: Add "pressed" effect to desktop bar --- src/effects/overview/qml/DesktopBar.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/effects/overview/qml/DesktopBar.qml b/src/effects/overview/qml/DesktopBar.qml index 0d4c824085..7cbf1037e2 100644 --- a/src/effects/overview/qml/DesktopBar.qml +++ b/src/effects/overview/qml/DesktopBar.qml @@ -151,7 +151,7 @@ Item { } Rectangle { - readonly property bool active: !thumbnail.scaled && (delegate.activeFocus || dropArea.containsDrag || bar.selectedDesktop === delegate.desktop) + readonly property bool active: !thumbnail.scaled && (delegate.activeFocus || dropArea.containsDrag || mouseArea.containsPress || bar.selectedDesktop === delegate.desktop) anchors.fill: parent radius: 3 color: "transparent" @@ -161,6 +161,7 @@ Item { } MouseArea { + id: mouseArea anchors.fill: parent acceptedButtons: Qt.LeftButton | Qt.MiddleButton onClicked: {