NS: prevent makeKeyWindow warnings (bug#69525)
authorGerd Möllmann <gerd@gnu.org>
Fri, 26 Jul 2024 09:48:24 +0000 (11:48 +0200)
committerGerd Möllmann <gerd@gnu.org>
Fri, 26 Jul 2024 18:59:25 +0000 (20:59 +0200)
* src/nsterm.m (ns_raise_frame): Don't makeKeyWindow if frame has
no_accept_focus set.

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];