From 0f20e4b83815a1fc2f59a7d3504aeda8e5ac4843 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Thu, 4 Aug 2022 17:27:45 +0300 Subject: [PATCH] effects: Fix windows visibility during partial activation (realtime gesture) Makes partial state account for both initial- and active-hidden status. This fixes the case when activeHidden windows would show up during a gesture even though they should disappear when the gesture completes. --- src/effects/private/qml/WindowHeapDelegate.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/effects/private/qml/WindowHeapDelegate.qml b/src/effects/private/qml/WindowHeapDelegate.qml index 6f6cc648d5..aed68ed66b 100644 --- a/src/effects/private/qml/WindowHeapDelegate.qml +++ b/src/effects/private/qml/WindowHeapDelegate.qml @@ -216,7 +216,9 @@ Item { y: (thumb.client.y - targetScreen.geometry.y - (thumb.windowHeap.absolutePositioning ? windowHeap.layout.Kirigami.ScenePosition.y : 0)) * (1 - effect.partialActivationFactor) + cell.y * effect.partialActivationFactor width: thumb.client.width * (1 - effect.partialActivationFactor) + cell.width * effect.partialActivationFactor height: thumb.client.height * (1 - effect.partialActivationFactor) + cell.height * effect.partialActivationFactor - opacity: thumb.initialHidden ? effect.partialActivationFactor : 1 + opacity: thumb.initialHidden + ? (thumb.activeHidden ? 0 : effect.partialActivationFactor) + : (thumb.activeHidden ? 1 - effect.partialActivationFactor : 1) } PropertyChanges { target: icon