changeset 75834:3734c13d5900

(MakeMeTheFrontProcess) [MAC_OSX]: Remove function. (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of MakeMeTheFrontProcess.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Tue, 13 Feb 2007 08:28:39 +0000
parents 433bde797a0b
children 770406986ce8
files src/macterm.c
diffstat 1 files changed, 5 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/macterm.c	Tue Feb 13 08:28:31 2007 +0000
+++ b/src/macterm.c	Tue Feb 13 08:28:39 2007 +0000
@@ -11640,19 +11640,6 @@
 }
 
 
-#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 ()
 {
@@ -11803,7 +11790,11 @@
   init_apple_event_handler ();
 
   if (!inhibit_window_system)
-    MakeMeTheFrontProcess ();
+    {
+      static const ProcessSerialNumber psn = {0, kCurrentProcess};
+
+      SetFrontProcess (&psn);
+    }
 #endif
 #endif