[gtk/wip/chergert/for-main: 1/5] 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-main: 1/5] macos: set main window in addition to key
- Date: Fri, 11 Mar 2022 22:45:11 +0000 (UTC)
commit 9fa5378d831d1294a15dc858ef6711cac3067a73
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]