From 5445cca05f7b621c16d39c8d6da839739a3fda41 Mon Sep 17 00:00:00 2001 From: Denis Garaev Date: Fri, 4 Sep 2026 21:30:45 +0300 Subject: [PATCH] Utils: Don't check for logical framebuffer on mutter-50+ It was enable by default since https://gitlab.gnome.org/GNOME/mutter/-/commit/74965cdb047df0f2159d53cb12770949924c60e9 which makes this check redundant. Also in mutter-51 gnome devs changed the underlying gschema which caused crashes on gala side. --- lib/Utils.vala | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Utils.vala b/lib/Utils.vala index 3e8be1027..20e04e927 100644 --- a/lib/Utils.vala +++ b/lib/Utils.vala @@ -331,8 +331,14 @@ namespace Gala { return Utils.scale_to_int (BUTTON_SIZE, monitor_scale); } +#if !HAS_MUTTER50 private static bool? framebuffer_is_logical = null; +#endif public static bool get_framebuffer_is_logical () { +#if HAS_MUTTER50 + // Since mutter-50 all framebuffers are logical by default + return true; +#else if (framebuffer_is_logical != null) { return framebuffer_is_logical; } @@ -348,6 +354,7 @@ namespace Gala { } return framebuffer_is_logical; +#endif } public static float get_ui_scaling_factor (Meta.Display display, int monitor_index) {