mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
* 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:
parent
b5e65175a3
commit
e27ffe6330
2 changed files with 17 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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