From b9cffa20debae73737c674bf75ab65db1bd74556 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Fri, 28 Mar 2008 16:38:18 -0700 Subject: [PATCH] =?UTF-8?q?XQuartz:=20Another=20Expos=C3=A9=20fix:=20F9=20?= =?UTF-8?q?doesn't=20raise=20all=20windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw/xquartz/X11Application.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m index f6fa7e9f4..561059278 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -324,9 +324,10 @@ static void message_kit_thread (SEL selector, NSObject *arg) { } - (void) set_front_process:unused { - QuartzMessageServerThread(kXDarwinBringAllToFront, 0); - ProcessSerialNumber psn = { 0, kCurrentProcess }; - SetFrontProcess(&psn); + [NSApp activateIgnoringOtherApps:YES]; + + if ([self modalWindow] == nil) + [self activateX:YES]; } - (void) set_can_quit:(NSNumber *)state {