]> git.eshelyaron.com Git - emacs.git/commitdiff
NS: prevent makeKeyWindow warnings (bug#69525)
authorGerd Möllmann <gerd@gnu.org>
Fri, 26 Jul 2024 09:48:24 +0000 (11:48 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 27 Jul 2024 12:03:09 +0000 (14:03 +0200)
* src/nsterm.m (ns_raise_frame): Don't makeKeyWindow if frame has
no_accept_focus set.

(cherry picked from commit 68a5f1f7d185250e61538f3af764b6e4ea62433f)

src/nsterm.m

index 575b24754e71a14790339fd47797f502293feb1b..d25f216edd49b07c05d98cdb8452d35b937006ad 100644 (file)
@@ -1407,7 +1407,7 @@ ns_raise_frame (struct frame *f, BOOL make_key)
   block_input ();
   if (FRAME_VISIBLE_P (f))
     {
-      if (make_key)
+      if (make_key && !f->no_accept_focus)
         [[view window] makeKeyAndOrderFront: NSApp];
       else
         [[view window] orderFront: NSApp];