Verified Commit 0f20e4b8 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

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.
parent 9e4926bf
Pipeline #221605 failed with stage
in 16 minutes and 22 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment