From: Christian Hergert Date: Fri, 11 Mar 2022 07:49:48 +0000 (-0800) Subject: macos: set main window in addition to key X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~4^2~318^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9fa5378d831d1294a15dc858ef6711cac3067a73;p=gtk4.git 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. --- 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];