projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f47e6dd
)
macos: set main window in addition to key
author
Christian Hergert
<christian@hergert.me>
Fri, 11 Mar 2022 07:49:48 +0000
(23:49 -0800)
committer
Christian Hergert
<chergert@redhat.com>
Wed, 16 Mar 2022 19:25:10 +0000
(12:25 -0700)
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
patch
|
blob
|
history
diff --git
a/gdk/macos/GdkMacosWindow.c
b/gdk/macos/GdkMacosWindow.c
index 836ded78e8e42c6c2378e6f65b7ad8b65d9ce59b..048c00c4078a588516bb1facee565d77bdb3a6e2 100644
(file)
--- 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];