kwin/effects/blur
David Edmundson b3020d6f5a Don't recreate kwayland blurmanager on screen size changes
Summary:
Instead of calling reconfigure() on screen size changes, which deletes
and recreates the effect, we can just update the one texture that's mapped to
the screen size.

---

From the wayland commit.

>What surprises me is that BlurManager recreates for Output changes.
>That sounds like a bug in KWin (or an area which could be improved).

I had thought the same and wrote this (though wanted to have kwayland fixed first)

Test Plan:
Logged in and out (my screen resizes on startup due to scaling)
Tested on my X machine by turning a screen off. Nothing broke, plasma
panels looked the same.

Note: Eike tried this patch last week and claimed kwin still crashed.
We don't have a backtrace so it could have been something unrelated,
applied wrong or that he was deliberately lying to wind me up.

Reviewers: #plasma, graesslin

Reviewed By: #plasma, graesslin

Subscribers: graesslin, plasma-devel, kwin, #kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D7877
2017-09-29 13:30:54 +01:00
..
CMakeLists.txt Use SERVICE_TYPES parameter to kcoreaddons_desktop_to_json() 2015-12-09 23:42:45 +00:00
blur.cpp Don't recreate kwayland blurmanager on screen size changes 2017-09-29 13:30:54 +01:00
blur.h Don't recreate kwayland blurmanager on screen size changes 2017-09-29 13:30:54 +01:00
blur.kcfg [effects] Use arg="true" in the kcfg files 2017-04-15 10:03:34 +02:00
blur_config.cpp [effects] Use arg="true" in the kcfg files 2017-04-15 10:03:34 +02:00
blur_config.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2017-03-25 04:37:53 +01:00
blur_config.h Use KConfigXT in Blur effect 2012-09-15 11:24:11 +02:00
blur_config.ui allow full range blur strength config in the GUI 2014-06-04 16:30:29 +02:00
blurconfig.kcfgc Use KConfigXT in Blur effect 2012-09-15 11:24:11 +02:00
blurshader.cpp [effects] Support GLES 3 in Blur and BackgroundContrast 2015-11-09 16:22:32 +01:00
blurshader.h [effects] Simplify supported check in blur and backgroundcontrast 2014-06-11 14:50:01 +02:00