Created
June 16, 2019 13:37
-
-
Save OwenChia/e7cba8bab1079cda9f8a945d77d408a2 to your computer and use it in GitHub Desktop.
simple fix for yakuake's blur support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/config/yakuake.kcfg b/app/config/yakuake.kcfg | |
index 1d19d21..392c632 100644 | |
--- a/app/config/yakuake.kcfg | |
+++ b/app/config/yakuake.kcfg | |
@@ -85,6 +85,11 @@ | |
</entry> | |
</group> | |
<group name="Appearance"> | |
+ <entry name="Blur" type="Bool"> | |
+ <label context="@label">Blur</label> | |
+ <whatsthis context="@info:whatsthis">The KWin compositor's blur effects.</whatsthis> | |
+ <default>true</default> | |
+ </entry> | |
<entry name="Skin" type="String"> | |
<label context="@label">Skin</label> | |
<whatsthis context="@info:whatsthis">The skin to be used by the application window.</whatsthis> | |
diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp | |
index 86192f7..f09c6a9 100644 | |
--- a/app/mainwindow.cpp | |
+++ b/app/mainwindow.cpp | |
@@ -851,6 +851,7 @@ void MainWindow::applyWindowProperties() | |
KWindowSystem::setState(winId(), NET::KeepAbove | NET::Sticky | NET::SkipTaskbar | NET::SkipPager); | |
KWindowSystem::setOnAllDesktops(winId(), Settings::showOnAllDesktops()); | |
+ KWindowEffects::enableBlurBehind(winId(), Settings::blur()); | |
} | |
void MainWindow::applyWindowGeometry() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment