kwin/effects/slidingpopups
Vlad Zagorodniy 66a91f0861 [effects/slidingpopups] Fix jumpy transition between In and Out animations
Summary:
If a window is being slided in and for some reason it gets closed, the
window will be slided out. The problem is that there is a jump between
the slide in animation and the slide out animation.

The reason for that is we cancel the slide in animation when the slide
out animation is started.

It makes sense to cancel previously active animations because they have
different durations. But visually, it doesn't look good.

TimeLine tries to preserve progress value when changing duration. Thus,
let's utilize that to fix the jump.

This change matters only with animation speed factor > 1.0.

CCBUG: 264276

Test Plan: Manually.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: abetts, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D15626
2018-10-08 14:14:14 +03:00
..
CMakeLists.txt
slidingpopups.cpp [effects/slidingpopups] Fix jumpy transition between In and Out animations 2018-10-08 14:14:14 +03:00
slidingpopups.h [effects/slidingpopups] Overhaul slotPropertyNotify 2018-08-17 12:14:01 +03:00
slidingpopups.kcfg [effects] Use arg="true" in the kcfg files 2017-04-15 10:03:34 +02:00
slidingpopupsconfig.kcfgc [effects] Introduce kcfg for SlidingPopups 2016-11-16 13:05:02 +01:00