Fix remember_window_position not working because of a stupid typo

Fixes #8646
This commit is contained in:
Kovid Goyal
2025-05-18 07:53:30 +05:30
parent d56721e64d
commit 13c37cf694
2 changed files with 6 additions and 1 deletions

View File

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

View File

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