From 08a0423b78b1d5493b616fa240fd5babb7eb5491 Mon Sep 17 00:00:00 2001 From: Michael Himing Date: Wed, 15 Jan 2025 08:33:48 +1100 Subject: [PATCH] fix: building on systems with older adwaita --- src/apprt/gtk/Window.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apprt/gtk/Window.zig b/src/apprt/gtk/Window.zig index 3e972ca021..10af251010 100644 --- a/src/apprt/gtk/Window.zig +++ b/src/apprt/gtk/Window.zig @@ -410,7 +410,7 @@ pub fn syncAppearance(self: *Window, config: *const configpkg.Config) !void { // Disable the title buttons (close, maximize, minimize, ...) // *inside* the tab overview if CSDs are disabled. // We do spare the search button, though. - if ((comptime adwaita.versionAtLeast(0, 0, 0)) and + if ((comptime adwaita.versionAtLeast(1, 4, 0)) and adwaita.enabled(&self.app.config)) { if (self.tab_overview) |tab_overview| {