kwin/effects/slidingpopups
Vlad Zagorodniy 653cea5f49 [effects/slidingpopups] Overhaul the animations data struct
Summary:
The existing Data struct has some serious problems:

(a) naming is not intuitive, SlideInterface uses more cleaner terminology
    so let's use that (and because Wayland is the future);

(b) fadeInTime and fadeOutTime should be slideInDuration and slideOutDuration
    respectively. The Sliding popups effect doesn't fade windows, it slides
    them;

(c) mWindowsData should be m_animationsData because other parts of this
    effect refer to it as "anim data"(e.g. setupAnimData).

This effect uses its own Location enum class instead of KWayland::
Server::SlideInterface::Location because it would be better to not
depend on platform specific data structures.

As a side effect, this change also fixes QHash abuse. The Sliding popups
effect is still hashing windows twice in prePaintWindow and paintWindow.
But I think that's acceptable because usually there would be only one
active sliding window.

CCBUG: 331118

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D14301
2018-08-14 11:55:07 +03:00
..
CMakeLists.txt [effects] Drop the .desktop files for the BuiltIn Effects 2014-04-28 13:52:43 +02:00
slidingpopups.cpp [effects/slidingpopups] Overhaul the animations data struct 2018-08-14 11:55:07 +03:00
slidingpopups.h [effects/slidingpopups] Overhaul the animations data struct 2018-08-14 11:55:07 +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