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.6.5+ds-1+rpi1~1^2~19^2~3^2~7^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4bc593c761224c533a924468f59819b863c103ae;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];