linux-packaging-mono/external/bockbuild/packages/patches/gtk/nsview-check-for-superview.patch
Xamarin Public Jenkins (auto-signing) 6bdd276d05 Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
2017-04-10 11:41:01 +00:00

17 lines
677 B
Diff

diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index 183537f..ee7dc96 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -1831,7 +1831,10 @@ gdk_event_translate (GdkEvent *event,
if (tmp_view && [tmp_view respondsToSelector:@selector(isGtkView)])
gtk_child = TRUE;
- tmp_view = [tmp_view superview];
+ if ([tmp_view respondsToSelector:@selector(superview)])
+ tmp_view = [tmp_view superview];
+ else
+ tmp_view = NULL;
}
if (!gtk_child && ![[nswindow firstResponder] respondsToSelector:@selector(isGtkView)])