macos: allow to hide decorations

This commit is contained in:
SoraTenshi
2023-09-13 23:16:33 +02:00
committed by Mitchell Hashimoto
parent 63379ee2eb
commit ed8b5bc283
3 changed files with 17 additions and 2 deletions

View File

@@ -119,6 +119,10 @@ export fn ghostty_config_get_error(self: *Config, idx: u32) Error {
return .{ .message = err.message.ptr };
}
export fn ghostty_config_render_decoration(self: *Config) bool {
return self.@"window-decoration";
}
/// Sync with ghostty_error_s
const Error = extern struct {
message: [*:0]const u8 = "",