From 5eafe967b4b912118e6bd817496ac40c81fd8bf7 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Tue, 13 Feb 2007 08:28:39 +0000 Subject: [PATCH] (MakeMeTheFrontProcess) [MAC_OSX]: Remove function. (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of MakeMeTheFrontProcess. --- src/macterm.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/macterm.c b/src/macterm.c index ff94a67d3f1..289972d3a48 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -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 init_menu_bar () { @@ -11803,7 +11790,11 @@ mac_initialize () init_apple_event_handler (); if (!inhibit_window_system) - MakeMeTheFrontProcess (); + { + static const ProcessSerialNumber psn = {0, kCurrentProcess}; + + SetFrontProcess (&psn); + } #endif #endif -- 2.39.2