Bug 475250

Summary: Conflicting animations driving Window Heap in and out causing stuttery effect
Product: [Plasma] kwin Reporter: David Edmundson <kde>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description David Edmundson 2023-10-05 15:39:40 UTC
When activating via a keyboard shortcut:

overviewVal which steps through from 0-1 
WindowHeapDelegate binds to this to update the position

We enter this step through:

        Transition {
            to: "initial, initial-hidden, active-normal, active-hidden"
            NumberAnimation {
                duration: thumb.windowHeap.animationDuration
                properties: "x, y, width, height, opacity"
                easing.type: Easing.OutCubic
            }

which will take effect at the last change making the last update look slow

and we also have a:
   TweenBehavior on x {}

which operates on all updates and also throws things off

Both of these are conflicting which gives us an animation that moves at seemingly random speeds as each X update retargets an animation badly.
Comment 1 David Edmundson 2023-12-06 14:47:42 UTC
Implicitly fixed via https://invent.kde.org/plasma/kwin/-/merge_requests/4697 as we end up retargeting after the state starts as the text laying out changes the text height which changes the expo layout margins which changes the width...