[gtk/wip/chergert/for-4-6: 47/56] macos: set main window in addition to key
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/for-4-6: 47/56] macos: set main window in addition to key
- Date: Wed, 16 Mar 2022 19:25:46 +0000 (UTC)
commit 4bc593c761224c533a924468f59819b863c103ae
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 10 23:49:48 2022 -0800
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.
gdk/macos/GdkMacosWindow.c | 3 +++
1 file changed, 3 insertions(+)
---
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];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]