linux-packaging-mono/external/bockbuild/packages/patches/gtk/nsview-check-for-superview.patch

17 lines
677 B
Diff
Raw Normal View History

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)])