diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-03-28 17:02:02 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-03-28 17:03:19 -0700 |
commit | bd28839eb866a9e6dc3ff80f13a67611da7eaf64 (patch) | |
tree | f67f521f023bd41a8678fc7b04195b658b67ce3b | |
parent | 933ffcdf7d2eaaf7caabfe6f861f04bcb149918f (diff) |
=?utf-8?q?XQuartz:=20Another=20Expos=C3=A9=20fix:=20F9=20doesn't=20raise=20all=20windows
=20(cherry=20picked=20from=20commit=20b9cffa20debae73737c674bf75ab65db1bd74556)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
-rw-r--r-- | hw/xquartz/X11Application.m | 12 |
1 files changed, 4 insertions, 8 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); - - 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 { |