summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <christian@hergert.me>2022-03-10 23:49:48 -0800
committerChristian Hergert <christian@hergert.me>2022-03-11 14:44:06 -0800
commit9fa5378d831d1294a15dc858ef6711cac3067a73 (patch)
tree86c32078056c087fed1622e3a788da4f11189331
parent84014e3414b5eb35e16a2a993472bfd391fe7ee1 (diff)
downloadgtk+-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.c3
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];