Commit 5eafe967 authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu
Browse files

(MakeMeTheFrontProcess) [MAC_OSX]: Remove function.

(mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
MakeMeTheFrontProcess.
parent 4f78f0f9
...@@ -11640,19 +11640,6 @@ x_delete_display (dpyinfo) ...@@ -11640,19 +11640,6 @@ x_delete_display (dpyinfo)
} }
#ifdef MAC_OSX
void
MakeMeTheFrontProcess ()
{
ProcessSerialNumber psn;
OSErr err;
err = GetCurrentProcess (&psn);
if (err == noErr)
(void) SetFrontProcess (&psn);
}
#endif /* MAC_OSX */
static void static void
init_menu_bar () init_menu_bar ()
{ {
...@@ -11803,7 +11790,11 @@ mac_initialize () ...@@ -11803,7 +11790,11 @@ mac_initialize ()
init_apple_event_handler (); init_apple_event_handler ();
if (!inhibit_window_system) if (!inhibit_window_system)
MakeMeTheFrontProcess (); {
static const ProcessSerialNumber psn = {0, kCurrentProcess};
SetFrontProcess (&psn);
}
#endif #endif
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment