From 2e07159461d6e9db147bda2c98c555ddc1a37b3c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 24 May 2018 09:14:13 +0530 Subject: [PATCH] macOS: Fix regression that caused the macos_option_al_alt setting to always be set to no for all os windows ina kitty instance after the first. Fixes #571 --- kitty/glfw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty/glfw.c b/kitty/glfw.c index 920d434cc..b41f588ac 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -385,12 +385,14 @@ create_os_window(PyObject UNUSED *self, PyObject *args) { Py_DECREF(ret); #ifdef __APPLE__ cocoa_create_global_menu(); - if (OPT(macos_option_as_alt)) glfwSetCocoaTextInputFilter(glfw_window, filter_option); // This needs to be done only after the first window has been created, because glfw only sets the activation policy once upon initialization. if (OPT(macos_hide_from_tasks)) cocoa_set_hide_from_tasks(); #endif is_first_window = false; } +#ifdef __APPLE__ + if (OPT(macos_option_as_alt)) glfwSetCocoaTextInputFilter(glfw_window, filter_option); +#endif OSWindow *w = add_os_window(); w->handle = glfw_window;