From bd28839eb866a9e6dc3ff80f13a67611da7eaf64 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Fri, 28 Mar 2008 17:02:02 -0700 Subject: [PATCH] =?UTF-8?q?=3D=3Futf-8=3Fq=3FXQuartz:=3D20Another=3D20Expo?= =?UTF-8?q?s=3DC3=3DA9=3D20fix:=3D20F9=3D20doesn't=3D20raise=3D20all=3D20w?= =?UTF-8?q?indows?= =20(cherry=20picked=20from=20commit=20b9cffa20debae73737c674bf75ab65db1bd74556)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit --- hw/xquartz/X11Application.m | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m index b7c876365..e1581af90 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -314,14 +314,10 @@ static void message_kit_thread (SEL selector, NSObject *arg) { } - (void) set_front_process:unused { - /* Hackery needed due to argv[0] hackery */ - // [self activateX:YES]; - ProcessSerialNumber psn = { 0, kCurrentProcess }; - SetFrontProcess(&psn); + [NSApp activateIgnoringOtherApps:YES]; - QuartzMessageServerThread(kXDarwinBringAllToFront, 0); - ProcessSerialNumber psn = { 0, kCurrentProcess }; - SetFrontProcess(&psn); + if ([self modalWindow] == nil) + [self activateX:YES]; } - (void) set_can_quit:(NSNumber *)state {