kwin/libkwineffects
Vlad Zagorodniy a281f2bce1 [effects/dialogparent] Fix flickering of parent windows
Summary:
If a modal window is closed and some alternative effect that animates
the disappearing of windows is enabled(e.g. the Glide effect, or the
Scale effect), the Dialog Parent effect can cause flickering of the
parent window because its animation duration doesn't match duration of
those alternative effects.

Also, if the Fade effect, the Glide effect, and the Scale effect are
disabled, the Dialog Parent will keep the parent window alive for no
good reason.

This change addresses that problem by adding keepAlive property to
`animate` function so scripted effects have more control over lifetime
of animated windows.

If both a modal window and its parent window are closed at the same time
(and there is no effect that animates the disappearing of windows), the
Dialog Parent will stop immediately(because windowDeleted will be
emitted right after windowClosed signal).

If both a modal window and its parent window are closed at the same time
(and there is effect that animates the disappearing of windows), the
Dialog Parent won't reference the latter window. Thus, it won't cause
flickering. I.e. it will "passively" animate parent windows.

BUG: 355036
FIXED-IN: 5.15.0

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D14919
2018-10-10 18:34:12 +03:00
..
anidata.cpp [effects/dialogparent] Fix flickering of parent windows 2018-10-10 18:34:12 +03:00
anidata_p.h [effects/dialogparent] Fix flickering of parent windows 2018-10-10 18:34:12 +03:00
CMakeLists.txt Bump libkwineffects SO version for 5.15 2018-10-04 00:57:44 +03:00
kwinanimationeffect.cpp [effects/dialogparent] Fix flickering of parent windows 2018-10-10 18:34:12 +03:00
kwinanimationeffect.h [effects/dialogparent] Fix flickering of parent windows 2018-10-10 18:34:12 +03:00
kwinconfig.h.cmake
kwineffects.cpp [effects] Make Scale and Glide effects Wayland-friendly 2018-10-09 11:04:35 +03:00
kwineffects.h [effects] Make Scale and Glide effects Wayland-friendly 2018-10-09 11:04:35 +03:00
kwinglobals.h Fix minor EBN issues 2018-08-29 21:02:16 +03:00
kwinglplatform.cpp
kwinglplatform.h
kwingltexture.cpp don't override m_canUseMipmaps 2018-03-14 04:37:44 +02:00
kwingltexture.h Remove Qt module declarations in includes 2018-06-05 18:07:23 +01:00
kwingltexture_p.h
kwinglutils.cpp [libkwineffects] Push render targets more efficiently in GLRenderTarget::pushRenderTargets 2018-07-03 12:33:04 +03:00
kwinglutils.h
kwinglutils_funcs.cpp
kwinglutils_funcs.h
kwinxrenderutils.cpp
kwinxrenderutils.h
logging.cpp
logging_p.h
Mainpage.dox
Messages.sh