diff --git a/kitty/rc/resize_os_window.py b/kitty/rc/resize_os_window.py index f5b63aa3d..1cd8927bc 100644 --- a/kitty/rc/resize_os_window.py +++ b/kitty/rc/resize_os_window.py @@ -151,10 +151,10 @@ def response_from_kitty(self, boss: Boss, window: Window | None, payload_get: Pa if existing is None: raise RemoteControlErrorWithoutTraceback( f'The OS Window {os_window_id} has no panel configuration') - for option in seen_options.keys(): + for option in seen_options: for config in cli_option_to_lsc_configs_map[option]: existing[config] = getattr(lsc, config) - if seen_options.get('edge', None) == 'background': + if seen_options.get('edge') == 'background': existing['type'] = GLFW_LAYER_SHELL_BACKGROUND if existing['hide_on_focus_loss']: existing['focus_policy'] = GLFW_FOCUS_ON_DEMAND