[gtk/wip/chergert/quartz4u: 110/116] macos: make sure window can become key



commit 34b481e48ae9967725aa84e2410c33c993744e85
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 23 11:25:27 2020 -0700

    macos: make sure window can become key

 gdk/macos/GdkMacosWindow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/macos/GdkMacosWindow.c b/gdk/macos/GdkMacosWindow.c
index f1b4976418..6ba8780bc8 100644
--- a/gdk/macos/GdkMacosWindow.c
+++ b/gdk/macos/GdkMacosWindow.c
@@ -301,7 +301,7 @@
 {
   inShowOrHide = YES;
 
-  if (makeKey)
+  if (makeKey && [self canBecomeKeyWindow])
     [self makeKeyAndOrderFront:nil];
   else
     [self orderFront:nil];


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]