(mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
MakeMeTheFrontProcess.
}
\f
-#ifdef MAC_OSX
-void
-MakeMeTheFrontProcess ()
-{
- ProcessSerialNumber psn;
- OSErr err;
-
- err = GetCurrentProcess (&psn);
- if (err == noErr)
- (void) SetFrontProcess (&psn);
-}
-#endif /* MAC_OSX */
-
static void
init_menu_bar ()
{
init_apple_event_handler ();
if (!inhibit_window_system)
- MakeMeTheFrontProcess ();
+ {
+ static const ProcessSerialNumber psn = {0, kCurrentProcess};
+
+ SetFrontProcess (&psn);
+ }
#endif
#endif