]> git.eshelyaron.com Git - emacs.git/commitdiff
Process focus-in events immediately on NS
authorDaniel Colascione <dancol@dancol.org>
Wed, 2 Oct 2024 17:34:52 +0000 (10:34 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 3 Oct 2024 06:42:28 +0000 (08:42 +0200)
* 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

index 8c4057384679d0ce5e86188ffa28d494bef8bb96..f68a22d9fbc43271abe3bc464ed0f1aa5e5539e5 100644 (file)
@@ -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
 }