Bug 381846 - Selecting a bookmark or new window from the dock menu does not bring application to the front. Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@254753 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1126,6 +1126,10 @@ NSString* const kPreviousSessionTerminatedNormallyKey = @"PreviousSessionTermina
|
||||
|
||||
- (IBAction)newWindow:(id)aSender
|
||||
{
|
||||
// Always come to the front for actions in the Dock menu
|
||||
if ([aSender isKindOfClass:[NSMenuItem class]] && [aSender menu] == mDockMenu)
|
||||
[NSApp activateIgnoringOtherApps:YES];
|
||||
|
||||
// If we have a key window, have it autosave its dimensions before
|
||||
// we open a new window. That ensures the size ends up matching.
|
||||
NSWindow* curMainWindow = [mApplication mainWindow];
|
||||
@@ -1599,6 +1603,10 @@ NSString* const kPreviousSessionTerminatedNormallyKey = @"PreviousSessionTermina
|
||||
|
||||
- (IBAction)openMenuBookmark:(id)aSender
|
||||
{
|
||||
// Always come to the front for actions in the Dock menu
|
||||
if ([aSender isKindOfClass:[NSMenuItem class]] && [aSender menu] == mDockMenu)
|
||||
[NSApp activateIgnoringOtherApps:YES];
|
||||
|
||||
BookmarkItem* item = [aSender representedObject];
|
||||
EBookmarkOpenBehavior openBehavior = eBookmarkOpenBehavior_Preferred;
|
||||
BOOL reverseBackgroundPref = NO;
|
||||
|
||||
Reference in New Issue
Block a user