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:
parent
9e4926bf34
commit
0f20e4b838
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue