diff options
author | Christian Hergert <christian@hergert.me> | 2022-03-10 23:49:48 -0800 |
---|---|---|
committer | Christian Hergert <christian@hergert.me> | 2022-03-11 14:44:06 -0800 |
commit | 9fa5378d831d1294a15dc858ef6711cac3067a73 (patch) | |
tree | 86c32078056c087fed1622e3a788da4f11189331 | |
parent | 84014e3414b5eb35e16a2a993472bfd391fe7ee1 (diff) | |
download | gtk+-9fa5378d831d1294a15dc858ef6711cac3067a73.tar.gz |
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.
-rw-r--r-- | gdk/macos/GdkMacosWindow.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/macos/GdkMacosWindow.c b/gdk/macos/GdkMacosWindow.c index 836ded78e8..048c00c407 100644 --- a/gdk/macos/GdkMacosWindow.c +++ b/gdk/macos/GdkMacosWindow.c @@ -266,6 +266,9 @@ typedef NSString *CALayerContentsGravity; else [self orderFront:nil]; + if (makeKey && [self canBecomeMainWindow]) + [self makeMainWindow]; + inShowOrHide = NO; [self checkSendEnterNotify]; |