diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 19:20:28 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 19:20:28 +0000 |
commit | 4c8e0e08a34050a8301856f00a65e4bc106e968e (patch) | |
tree | 72894196367cdcabbb1e63b5189d91b446dcee93 /chrome | |
parent | 0bba72e1f8b3e5bad85a70bf8f20cb9334132413 (diff) | |
download | chromium_src-4c8e0e08a34050a8301856f00a65e4bc106e968e.zip chromium_src-4c8e0e08a34050a8301856f00a65e4bc106e968e.tar.gz chromium_src-4c8e0e08a34050a8301856f00a65e4bc106e968e.tar.bz2 |
Fix menubar activation in context of temp LSUIElement=1 hack.
Review URL: http://codereview.chromium.org/27145
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10361 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/browser_main_mac.mm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/browser_main_mac.mm b/chrome/browser/browser_main_mac.mm index f926244..c7ddda0 100644 --- a/chrome/browser/browser_main_mac.mm +++ b/chrome/browser/browser_main_mac.mm @@ -34,9 +34,15 @@ void WillInitializeMainMessageLoop(const CommandLine & command_line) { // Subprocesses (such as the renderer) need an NSApplication for // Cocoa happiness However, for the browser itself, we DO want it in // the dock. These 3 lines make it happen. + // + // Real fix tracked by http://code.google.com/p/chromium/issues/detail?id=8044 ProcessSerialNumber psn; GetCurrentProcess(&psn); - TransformProcessType(&psn, kProcessTransformToForegroundApplication); + TransformProcessType(&psn, kProcessTransformToForegroundApplication); + // Fix the menubar. Ugly. To be removed along with the rest of the + // LSUIElement stuff. + [NSApp deactivate]; + [NSApp activateIgnoringOtherApps:YES]; } // Perform platform-specific work that needs to be done after the main event |