Prevent blinking of appicon double-clicking on it.

Additional NSWindow and NSView overrides prevent redaundant call to makeKeyAndOrderFront.
Checks for [NSIconWindow becomesKeyOnlyIfNeeded] and [NSIconView needsPanelToBecomeKey]
are performed in NSWindow.m line 3871.
This commit is contained in:
Sergii Stoian 2019-03-26 16:33:59 +02:00
parent 7bcf5b7fbd
commit 5385fd3191

View file

@ -434,6 +434,11 @@ NSApplication *NSApp = nil;
return NO;
}
- (BOOL) becomesKeyOnlyIfNeeded
{
return YES;
}
- (BOOL) worksWhenModal
{
return YES;
@ -542,6 +547,11 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
return YES;
}
- (BOOL) needsPanelToBecomeKey
{
return NO;
}
- (void) concludeDragOperation: (id<NSDraggingInfo>)sender
{
}