Bug 475250 - Conflicting animations driving Window Heap in and out causing stuttery effect
Summary: Conflicting animations driving Window Heap in and out causing stuttery effect
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-05 15:39 UTC by David Edmundson
Modified: 2023-12-06 14:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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...