From cddb2177f154c0726e98a196a3c7fc41b3b6851e Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 6 Oct 2022 07:35:56 +0000 Subject: [PATCH] effects: Fix window highlighting in WindowHeap Currently, windows are not highlighted as expected in the window view effect if the keyboard focus belongs to another screen view. In general, it makes more sense to apply "Window.window.activeFocusItem" constraint only to heap.selected. --- src/effects/private/qml/WindowHeapDelegate.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/private/qml/WindowHeapDelegate.qml b/src/effects/private/qml/WindowHeapDelegate.qml index a277d48bed..6a1bd3ffd7 100644 --- a/src/effects/private/qml/WindowHeapDelegate.qml +++ b/src/effects/private/qml/WindowHeapDelegate.qml @@ -135,7 +135,7 @@ Item { imagePath: "widgets/viewitem" prefix: "hover" z: -1 - visible: !thumb.windowHeap.dragActive && (hoverHandler.hovered || thumb.selected) && Window.window.activeFocusItem && windowHeap.effectiveOrganized + visible: !thumb.windowHeap.dragActive && (hoverHandler.hovered || (thumb.selected && Window.window.activeFocusItem)) && windowHeap.effectiveOrganized } MouseArea {