From 33206dee65c3fe2725e6348953677bc059b3239d Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 5 Jun 2024 17:11:27 +0800 Subject: [PATCH] Fix Mac OS build * src/nsfns.m (ns_make_frame_key_window): Restore, but only when NS_IMPL_COCOA. (cherry picked from commit b2ed1ed1d87c9a3c306554ab7a653717450cc562) --- src/nsfns.m | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) -- 2.39.2