Skip to content

Commit 797da8f

Browse files
Merge pull request #772 from contour-terminal/feature/blur-behind-gnome-shell
Adds support for blur-behind window on GNOME shell.
2 parents 480385e + 5d93d10 commit 797da8f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- [Linux] Changes the .desktop file name and icon file name to conform to the flatpak recommendations.
66
- [Linux] Provide an AppStream XML file.
77
- [Linux] Drop KDE/KWin dependency on the binary by implementing enabling blur-behind background manually.
8+
- [Linux] Adds support for blur-behind window on GNOME shell (Please read https://github.com/aunetx/blur-my-shell/issues/300 for further details if in trouble).
89
- Internal: Y-axis inverted to match GUI coordinate systems where (0, 0) is top left rather than bottom left.
910
- Fixes logging file toggle.
1011

src/contour/BlurBehind.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ void setEnabled(QWindow* window, bool enable, QRegion region)
3939
window->setProperty("kwin_background_contrast", 1);
4040
window->setProperty("kwin_background_intensity", 1);
4141
window->setProperty("kwin_background_saturation", 1);
42+
window->setProperty("_MUTTER_HINTS", "blur-provider=sigma:60,brightness:0.9");
4243
}
4344
else
4445
{
@@ -47,6 +48,7 @@ void setEnabled(QWindow* window, bool enable, QRegion region)
4748
window->setProperty("kwin_background_contrast", {});
4849
window->setProperty("kwin_background_intensity", {});
4950
window->setProperty("kwin_background_saturation", {});
51+
window->setProperty("_MUTTER_HINTS", {});
5052
}
5153
#elif defined(_WIN32)
5254
// Awesome hack with the noteworty links:

0 commit comments

Comments
 (0)