From 19afbb90a7d41ae3f2d74fb49010c7b6cd7d258d Mon Sep 17 00:00:00 2001 From: Raiden1411 <67233402+Raiden1411@users.noreply.github.com> Date: Sun, 5 Nov 2023 14:06:33 +0000 Subject: [PATCH] fix: glfw build --- src/Surface.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Surface.zig b/src/Surface.zig index 521fc22e5..3b0319af7 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -17,6 +17,7 @@ pub const Message = apprt.surface.Message; const std = @import("std"); const builtin = @import("builtin"); +const build_config = @import("build_config.zig"); const assert = std.debug.assert; const Allocator = std.mem.Allocator; const ArenaAllocator = std.heap.ArenaAllocator; @@ -546,7 +547,7 @@ pub fn init( } if (config.fullscreen) { - if (builtin.target.isDarwin() or builtin.os.tag == .linux) { + if (build_config.app_runtime == .gtk or build_config.app_runtime == .none) { rt_surface.toggleFullscreen(config.@"macos-non-native-fullscreen"); } }