Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OwenChia/e7cba8bab1079cda9f8a945d77d408a2 to your computer and use it in GitHub Desktop.
Save OwenChia/e7cba8bab1079cda9f8a945d77d408a2 to your computer and use it in GitHub Desktop.
simple fix for yakuake's blur support
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