]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Mac OS build
authorPo Lu <luangruo@yahoo.com>
Wed, 5 Jun 2024 09:11:27 +0000 (17:11 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 5 Jun 2024 10:15:49 +0000 (12:15 +0200)
* src/nsfns.m (ns_make_frame_key_window): Restore, but
only when NS_IMPL_COCOA.

(cherry picked from commit b2ed1ed1d87c9a3c306554ab7a653717450cc562)

src/nsfns.m

index 23f2337597686ff6f05f7b07c823765a7b634ecd..24fabbe2eaade4c0bb7f4bf2c611c0469ff7db45 100644 (file)
@@ -690,6 +690,16 @@ ns_change_tab_bar_height (struct frame *f, int height)
   SET_FRAME_GARBAGED (f);
 }
 
+#ifdef NS_IMPL_COCOA
+
+void
+ns_make_frame_key_window (struct frame *f)
+{
+  [[FRAME_NS_VIEW (f) window] makeKeyWindow];
+}
+
+#endif /* NS_IMPL_COCOA */
+
 /* tabbar support */
 static void
 ns_set_tab_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)