Bug 457056 - Windowview effect uses hardcoded animation duration instead of using the user setting
Summary: Windowview effect uses hardcoded animation duration instead of using the user...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-present-windows (show other bugs)
Version: 5.25.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-23 21:26 UTC by Christian (Fuchs)
Modified: 2022-08-04 16:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

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