mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
chore: cleanup
This commit is contained in:
@ -155,7 +155,6 @@ const DerivedConfig = struct {
|
||||
window_padding_y: u32,
|
||||
window_padding_balance: bool,
|
||||
title: ?[:0]const u8,
|
||||
fullscreen: bool,
|
||||
|
||||
pub fn init(alloc_gpa: Allocator, config: *const configpkg.Config) !DerivedConfig {
|
||||
var arena = ArenaAllocator.init(alloc_gpa);
|
||||
@ -181,7 +180,6 @@ const DerivedConfig = struct {
|
||||
.window_padding_y = config.@"window-padding-y",
|
||||
.window_padding_balance = config.@"window-padding-balance",
|
||||
.title = config.title,
|
||||
.fullscreen = config.fullscreen,
|
||||
|
||||
// Assignments happen sequentially so we have to do this last
|
||||
// so that the memory is captured from allocs above.
|
||||
|
@ -101,6 +101,8 @@ pub const App = struct {
|
||||
|
||||
/// Called when the cell size changes.
|
||||
set_cell_size: ?*const fn (SurfaceUD, u32, u32) callconv(.C) void = null,
|
||||
|
||||
fullscreen: ?*const fn (SurfaceUD, configpkg.NonNativeFullscreen) callconv(.C) void = null,
|
||||
};
|
||||
|
||||
/// Special values for the goto_tab callback.
|
||||
|
@ -280,6 +280,7 @@ command: ?[]const u8 = null,
|
||||
|
||||
/// The setting to tell Ghostty to start in fullscreen mode.
|
||||
/// By default with will start windowed.
|
||||
/// New windows created when this is set to true will not start in fullscreen.
|
||||
fullscreen: bool = false,
|
||||
|
||||
/// The setting that will change the application class value.
|
||||
|
Reference in New Issue
Block a user