[gtk/wip/chergert/for-main] 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] macos: set main window in addition to key
- Date: Fri, 11 Mar 2022 07:56:50 +0000 (UTC)
commit c818b1dd4c6fac1379bebb5f08470d3926534b1b
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 1967bd89e0..23b3f5a3f3 100644
--- a/gdk/macos/GdkMacosWindow.c
+++ b/gdk/macos/GdkMacosWindow.c
@@ -266,6 +266,9 @@ typedef NSString *CALayerContentsGravity;
else
[self orderFront:self];
+ if (makeKey && [self canBecomeMainWindow])
+ [self makeMainWindow];
+
inShowOrHide = NO;
[self checkSendEnterNotify];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]