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:
Christian Hergert 2022-03-10 23:49:48 -08:00
parent 84014e3414
commit 9fa5378d83

View File

@ -266,6 +266,9 @@ typedef NSString *CALayerContentsGravity;
else
[self orderFront:nil];
if (makeKey && [self canBecomeMainWindow])
[self makeMainWindow];
inShowOrHide = NO;
[self checkSendEnterNotify];