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.
This commit is contained in:
ivan tkachenko 2022-08-04 17:27:45 +03:00
parent 9e4926bf34
commit 0f20e4b838
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3

View file

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