From 13c37cf6940ed091cb8c71d0b7501eee148356c9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 18 May 2025 07:53:30 +0530 Subject: [PATCH] Fix remember_window_position not working because of a stupid typo Fixes #8646 --- docs/changelog.rst | 5 +++++ kitty/main.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 4498c1117..78354f127 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -106,6 +106,11 @@ consumption to do the same tasks. Detailed list of changes ------------------------------------- +0.42.2 [future] +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Fix :opt:`remember_window_position` not working because of a stupid typo (:iss:`8646`) + 0.42.1 [2025-05-17] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/main.py b/kitty/main.py index 95df33685..cc4784ad1 100644 --- a/kitty/main.py +++ b/kitty/main.py @@ -259,7 +259,7 @@ def _run_app(opts: Options, args: CLIOptions, bad_lines: Sequence[BadLine] = (), with cached_values_for(run_app.cached_values_name) as cached_values: if not _is_panel_kitten and not is_wayland(): if opts.remember_window_position: - cached_workarea = cached_values.get('monitor-workarea', ()) + cached_workarea = tuple(tuple(x) for x in cached_values.get('monitor-workarea', ())) if cached_workarea and glfw_get_monitor_workarea() == tuple(cached_workarea): pos_x, pos_y = cached_values.get('window-pos', (None, None)) if args.position: