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.
This commit is contained in:
Vlad Zahorodnii 2022-10-06 07:35:56 +00:00
parent 0228f667a9
commit cddb2177f1

View file

@ -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 {