diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 6b57163f3..e2c91592d 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -1041,8 +1041,8 @@ process_cocoa_pending_actions(void) { if (cocoa_pending_actions[TOGGLE_MACOS_SECURE_KEYBOARD_ENTRY]) { call_boss(toggle_macos_secure_keyboard_entry, NULL); } if (cocoa_pending_actions[TOGGLE_FULLSCREEN]) { call_boss(toggle_fullscreen, NULL); } if (cocoa_pending_actions_data.wd) { - if (cocoa_pending_actions[NEW_OS_WINDOW_WITH_WD]) { call_boss(new_os_window_with_wd, "sO", cocoa_pending_actions.wd, Py_True); } - if (cocoa_pending_actions[NEW_TAB_WITH_WD]) { call_boss(new_tab_with_wd, "sO", cocoa_pending_actions.wd, Py_True); } + if (cocoa_pending_actions[NEW_OS_WINDOW_WITH_WD]) { call_boss(new_os_window_with_wd, "sO", cocoa_pending_actions_data.wd, Py_True); } + if (cocoa_pending_actions[NEW_TAB_WITH_WD]) { call_boss(new_tab_with_wd, "sO", cocoa_pending_actions_data.wd, Py_True); } free(cocoa_pending_actions_data.wd); cocoa_pending_actions_data.wd = NULL; }