chore: cleanup

This commit is contained in:
Raiden1411
2023-11-06 14:27:36 +00:00
parent 60717cde14
commit d2d5d4ba82
3 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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.