revert: renaming of window-position-{x,y}

This commit is contained in:
Adam Wolf
2024-12-29 21:56:09 -06:00
committed by Mitchell Hashimoto
parent a7e3e5915c
commit 13d935a401
2 changed files with 4 additions and 4 deletions

View File

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

View File

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