mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00
fix: glfw build
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user