kwin/plugins/kdecorations/aurorae
David Edmundson ec4359926b Update Aurorae Shadow when we copy the buffer, not one frame after painting
Summary:
In the current code we update the shadows during the decoration paint.

Because this is called in the middle of the Scene::paintWindow and we
have already painted the shadows/built quads, the setShadow() was
deferred to avoid the obvious bugs updating the shadow would cause.
This sucks because it means we're always out by one frame, and it means
we always do two updates.

As the shadow is taken from the buffer, we can solve that problem by
updating the shadow before any painting at the same time that we update the
buffer. This means we don't need the deferring hack.

This patch also fixes a related issue that m_padding could have
changed after the buffer is rendered, but before painting. This would lead to rendering a mess.
This patch caches the relevant padding at the time the buffer is
created.

@Notmart, this is subtly different from the patch I showed you last night,
for me it fixes things without your other patch, but I don't know. If it doesn't it's
still (IMHO) a lot cleaner.

Test Plan:
Ran an Aurorae theme
Maximised, restored, resized. Everything.

Reviewers: #plasma, graesslin

Reviewed By: #plasma, graesslin

Subscribers: graesslin, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D4990
2017-03-20 08:51:56 +00:00
..
src Update Aurorae Shadow when we copy the buffer, not one frame after painting 2017-03-20 08:51:56 +00:00
themes SVN_SILENT made messages (.desktop file) - always resolve ours 2016-12-20 13:30:44 +01:00
AUTHORS Move clients/ to plugins/kdecorations/ 2016-04-15 15:21:03 +02:00
CMakeLists.txt Move clients/ to plugins/kdecorations/ 2016-04-15 15:21:03 +02:00
README Move clients/ to plugins/kdecorations/ 2016-04-15 15:21:03 +02:00
theme-description Move clients/ to plugins/kdecorations/ 2016-04-15 15:21:03 +02:00
TODO Move clients/ to plugins/kdecorations/ 2016-04-15 15:21:03 +02:00

Aurorae is a themeable window decoration for KWin.

It supports theme files consisting of several SVG files for decoration and buttons. Themes can be
installed and selected directly in the configuration module of KWin decorations.

Please have a look at theme-description on how to write a theme file.