mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
macos: set main window in addition to key
If we are showing the window, we might also want to make it the main window for the application when shown.
This commit is contained in:
parent
84014e3414
commit
9fa5378d83
@ -266,6 +266,9 @@ typedef NSString *CALayerContentsGravity;
|
|||||||
else
|
else
|
||||||
[self orderFront:nil];
|
[self orderFront:nil];
|
||||||
|
|
||||||
|
if (makeKey && [self canBecomeMainWindow])
|
||||||
|
[self makeMainWindow];
|
||||||
|
|
||||||
inShowOrHide = NO;
|
inShowOrHide = NO;
|
||||||
|
|
||||||
[self checkSendEnterNotify];
|
[self checkSendEnterNotify];
|
||||||
|
Loading…
Reference in New Issue
Block a user