From 13d935a401004918759072585fd68555b23f68b5 Mon Sep 17 00:00:00 2001 From: Adam Wolf Date: Sun, 29 Dec 2024 21:56:09 -0600 Subject: [PATCH] revert: renaming of window-position-{x,y} --- src/Surface.zig | 4 ++-- src/config/Config.zig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Surface.zig b/src/Surface.zig index ccc3ba0ce..ace392bb3 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -621,8 +621,8 @@ pub fn init( const width = @max(config.@"window-width" * cell_size.width, 640); const width_f32: f32 = @floatFromInt(width); const height_f32: f32 = @floatFromInt(height); - const position_x = config.@"start-position-x"; - const position_y = config.@"start-position-y"; + const position_x = config.@"window-position-x"; + const position_y = config.@"window-position-y"; // The final values are affected by content scale and we need to // account for the padding so we get the exact correct grid size. diff --git a/src/config/Config.zig b/src/config/Config.zig index ad862540a..c9cf188b5 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -1121,8 +1121,8 @@ keybind: Keybinds = .{}, /// on Linux. GTK 4.0 does not support setting the window position. /// /// This will default to the top-left corner of the screen if not set (0, 0). -@"start-position-x": i32 = 0, -@"start-position-y": i32 = 0, +@"window-position-x": i32 = 0, +@"window-position-y": i32 = 0, /// Whether to enable saving and restoring window state. Window state includes /// their position, size, tabs, splits, etc. Some window state requires shell