* Source/NSApplication.m (becomesKeyOnlyIfNeeded),

(needsPanelToBecomeKey): override NSWindow and NSView methods
in appicon to reduce number of order front calls. The source
of the calls is NSWindow's sendEvent:.
This commit is contained in:
Sergii Stoian 2019-04-08 02:54:35 +03:00
parent b5e65175a3
commit e27ffe6330
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2019-04-08 Sergii Stoian <stoyan255@ukr.net>
* Source/NSApplication.m (becomesKeyOnlyIfNeeded)
(needsPanelToBecomeKey): override NSWindow and NSView methods
in appicon to reduce number of order front calls. The source
of the call is NSWindow's sendEvent:.
2019-04-06 Sergii Stoian <stoyan255@ukr.net>
* Headers/Additions/GNUstepGUI/GSDisplayServer.h,

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
{
}