From 7429379eb1001ee3dc769daa8fe6b3aef1b9cc8a Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 13 Jan 2008 14:00:25 -0800 Subject: [PATCH] XQuartz: Moved SetFrontProcess haco to set_front_process So it is done by the other thread... --- hw/xquartz/X11Application.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m index 61a1c1d76..65c7d0a7f 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -318,7 +318,11 @@ static void message_kit_thread (SEL selector, NSObject *arg) { } - (void) set_front_process:unused { -// [self activateX:YES]; + /* Hackery needed due to argv[0] hackery */ + // [self activateX:YES]; + ProcessSerialNumber psn = { 0, kCurrentProcess }; + SetFrontProcess(&psn); + QuartzMessageServerThread(kXDarwinBringAllToFront, 0); } @@ -715,10 +719,6 @@ void X11ApplicationSetWindowMenuCheck (int idx) { void X11ApplicationSetFrontProcess (void) { message_kit_thread (@selector (set_front_process:), nil); - - /* Hackery needed due to argv[0] hackery */ - ProcessSerialNumber psn = { 0, kCurrentProcess }; - SetFrontProcess(&psn); } void X11ApplicationSetCanQuit (int state) {