winproto/wayland: disable custom blur on GTK >=4.23.3

GTK 4.23.3 added its own (much smarter) implementation of background blur,
which means our implementation is not only redundant, it also crashes the
program because a surface cannot have multiple associated blur objects.
Ergo, don't do custom blur on newer GTK versions.

See #13578
This commit is contained in:
Leah Amelia Chen
2026-08-04 03:46:31 +08:00
parent 7d748097a0
commit 04f1bc0960

View File

@@ -174,6 +174,12 @@ pub const Window = struct {
};
const bg_effect: ?*ext.BackgroundEffectSurfaceV1 = bg: {
if (gtk_version.runtimeAtLeast(4, 23, 3)) {
// GTK 4.23.3 added an official way to do background blur,
// so we don't need to do anything on our own.
break :bg null;
}
const mgr = app.globals.get(.ext_background_effect) orelse
break :bg null;