From: Po Lu Date: Wed, 5 Jun 2024 09:11:27 +0000 (+0800) Subject: Fix Mac OS build X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=33206dee65c3fe2725e6348953677bc059b3239d;p=emacs.git Fix Mac OS build * src/nsfns.m (ns_make_frame_key_window): Restore, but only when NS_IMPL_COCOA. (cherry picked from commit b2ed1ed1d87c9a3c306554ab7a653717450cc562) --- diff --git a/src/nsfns.m b/src/nsfns.m index 23f23375976..24fabbe2eaa 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -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)