mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
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:
parent
7bcf5b7fbd
commit
5385fd3191
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue