linux-packaging-mono/external/bockbuild/packages/patches/gtk/nsview-embedding-skip-hidden-subviews.patch
Xamarin Public Jenkins (auto-signing) b501216e0b Imported Upstream version 5.20.1.3
Former-commit-id: c0dbb88f7549c374316c95af3cf6b4a8c7d66bfe
2019-03-20 08:22:07 +00:00

27 lines
991 B
Diff

From cb62d4a99f228f51ee420f289f741dbb4ecea57b Mon Sep 17 00:00:00 2001
From: Vsevolod Kukol <sevoku@microsoft.com>
Date: Mon, 18 Mar 2019 16:15:54 +0100
Subject: [PATCH] Skip hidden subviews when searching for a child event target
---
gdk/quartz/gdkevents-quartz.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index b5016e1de9..8101e366c8 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -724,7 +724,8 @@ find_nsview_at_pos (GdkWindowImplQuartz *impl, gint x, gint y)
if (sv == impl->layer_view)
continue;
- if (r.origin.x <= x && r.origin.x + r.size.width >= x &&
+ if (![sv isHidden] &&
+ r.origin.x <= x && r.origin.x + r.size.width >= x &&
r.origin.y <= y && r.origin.y + r.size.height >= y)
{
NSView* child = find_nsview_at_pos (impl, x - r.origin.x, y - r.origin.y);
--
2.17.1 (Apple Git-112)