From a716a768839ceae67e9a82791f661c6bce5ba06b Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Wed, 2 Oct 2024 10:34:52 -0700 Subject: [PATCH] Process focus-in events immediately on NS * src/nsterm.m ([EmacsView windowDidBecomeKey]): kick the main event loop when we get a focus-in event so it gets processed immediately (Bug#73559). (cherry picked from commit 79d66b4b2970b915abfde516d867107afa19348f) --- src/nsterm.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nsterm.m b/src/nsterm.m index 8c405738467..f68a22d9fbc 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -7973,6 +7973,7 @@ ns_in_echo_area (void) event.kind = FOCUS_IN_EVENT; XSETFRAME (event.frame_or_window, emacsframe); kbd_buffer_store_event (&event); + ns_send_appdefined (-1); // Kick main loop } -- 2.39.2