From: Daniel Colascione Date: Wed, 2 Oct 2024 17:34:52 +0000 (-0700) Subject: Process focus-in events immediately on NS X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a716a768839ceae67e9a82791f661c6bce5ba06b;p=emacs.git 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) --- 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 }