Kwin blur effect - Respect rounded corners
This kwin effect is a fork of the default kwin blur effect, with minimal changes to solve the "plasma kornerbug". It works with all decorations, including aurorae one's, and take care of maximized windows, that are assumed to not have rounded corners.
Above left : Korner bug with the default blur effect
Above right : with the present blur effect
(Windows decoration : classikstyles by paulmcauly)
After installing the effect, go to Settings --> Workspace behavior --> Desktop Effects.
- Disable the default blur effect ("Blur")
- Enable "Blur - Respect rounded corners"
- Tweak the settings of the effect to match your window decorations.
I only tested the effect on plasma 5.23.3, I don't know if it work with older versions (But it should, the changes from the default blur effect are very minimal)
If you build a binary package, or make the effect available from the "kde get new stuff" service, let me know !
Build from source
Section copied from Yet another magic lamp from zzag.
You will need the following dependencies to build this effect:
- any C++14 enabled compiler
- KDE Frameworks 5:
- Extra CMake Modules
On Arch Linux
sudo pacman -S cmake extra-cmake-modules kwin
sudo dnf install cmake extra-cmake-modules kf5-kconfig-devel \ kf5-kcoreaddons-devel kf5-kwindowsystem-devel kwin-devel \ qt5-qtbase-devel libepoxy-devel kf5-kconfigwidgets-devel
sudo zypper install cmake extra-cmake-modules kconfig-devel \ kcoreaddons-devel kwindowsystem-devel kwin5-devel \ libqt5-qtbase-devel libepoxy-devel kconfigwidgets-devel
sudo apt install cmake extra-cmake-modules kwin-dev \ libkf5config-dev libkf5configwidgets-dev libkf5coreaddons-dev \ libkf5windowsystem-dev qtbase5-dev libkwaylandserver-dev
After you installed all the required dependencies, clone the repo and use the provided scripts :
Build and install:
chmod +x install.sh ./install.sh
Uninstall build script:
chmod +x uninstall.sh ./uninstall.sh
Any help is welcome. Feel free to fill an issue if you have one.