macos: set main window in addition to key
authorChristian Hergert <christian@hergert.me>
Fri, 11 Mar 2022 07:49:48 +0000 (23:49 -0800)
committerChristian Hergert <christian@hergert.me>
Fri, 11 Mar 2022 22:44:06 +0000 (14:44 -0800)
If we are showing the window, we might also want to make it the main
window for the application when shown.

gdk/macos/GdkMacosWindow.c

index 836ded78e8e42c6c2378e6f65b7ad8b65d9ce59b..048c00c4078a588516bb1facee565d77bdb3a6e2 100644 (file)
@@ -266,6 +266,9 @@ typedef NSString *CALayerContentsGravity;
   else
     [self orderFront:nil];
 
+  if (makeKey && [self canBecomeMainWindow])
+    [self makeMainWindow];
+
   inShowOrHide = NO;
 
   [self checkSendEnterNotify];