XQuartz: Use set_front_process rather than X11ApplicationSetFrontProcess since we...
authorJeremy Huddleston <jeremyhu@apple.com>
Wed, 21 Sep 2011 03:39:06 +0000 (20:39 -0700)
committerJeremy Huddleston <jeremyhu@apple.com>
Wed, 5 Oct 2011 03:02:29 +0000 (20:02 -0700)
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit 38e9e28ba2fbffee52ad9889ef6d4e94c7af3e10)

hw/xquartz/X11Application.m

index 7fd7dab..12ff53c 100644 (file)
@@ -356,7 +356,7 @@ static void message_kit_thread (SEL selector, NSObject *arg) {
                          */
                         _appFlags._active = YES;
 
-                        X11ApplicationSetFrontProcess();
+                        [self set_front_process:nil];
 
                         /* Get the Spaces preference for SwitchOnActivate */
                         (void)CFPreferencesAppSynchronize(CFSTR("com.apple.dock"));