Bug 457056

Summary: Windowview effect uses hardcoded animation duration instead of using the user setting
Product: [Plasma] kwin Reporter: Christian (Fuchs) <kde>
Component: effects-present-windowsAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.25.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christian (Fuchs) 2022-07-23 21:26:00 UTC
SUMMARY
The new window overview effect introduced in 5.25 uses a hardcoded effect duration of PlasmaCore.Units.longDuration set in effects/windowview/qml/main.qml#L26   (Current main) instead of using the user set, plasma-wide effect duration

STEPS TO REPRODUCE
1. Configure an animation duration for plasma
2. Start the overview effect

OBSERVED RESULT
No impact

EXPECTED RESULT
Effect uses the configured duration

SOFTWARE/OS VERSIONS
All platforms
Comment 1 Nate Graham 2022-07-26 18:28:29 UTC
PlasmaCore.Units.longDuration automatically scales itself according to the user's animation speed preference. I cannot reproduce the issue; when I set my animation duration to be super duper slow and hit Ctrl+F10 to open Window View, it opens and closes very slowly.

Can you clarify how you're getting the issue to reproduce?
Comment 2 Christian (Fuchs) 2022-07-27 21:10:52 UTC
(In reply to Nate Graham from comment #1)
> PlasmaCore.Units.longDuration automatically scales itself according to the
> user's animation speed preference. I cannot reproduce the issue; when I set
> my animation duration to be super duper slow and hit Ctrl+F10 to open Window
> View, it opens and closes very slowly.
> 
> Can you clarify how you're getting the issue to reproduce?

Okay, that's odd, I didn't get any change when using the slider, but it was very jerky and cut-off-y in general, so maybe something else was wrong. I'll try to reproduce it after my holidays
Comment 3 Christian (Fuchs) 2022-08-04 15:39:31 UTC
(In reply to Christian (Fuchs) from comment #2)
> (In reply to Nate Graham from comment #1)
> > PlasmaCore.Units.longDuration automatically scales itself according to the
> > user's animation speed preference. I cannot reproduce the issue; when I set
> > my animation duration to be super duper slow and hit Ctrl+F10 to open Window
> > View, it opens and closes very slowly.
> > 
> > Can you clarify how you're getting the issue to reproduce?
> 
> Okay, that's odd, I didn't get any change when using the slider, but it was
> very jerky and cut-off-y in general, so maybe something else was wrong. I'll
> try to reproduce it after my holidays

I have absolutely no idea how, but I am unable to reproduce this any more. 
Sorry for the noise, closed.
Comment 4 Nate Graham 2022-08-04 16:25:56 UTC
No worries!