diff options
author | David Karlaš <david.karlas@microsoft.com> | 2019-03-13 15:21:52 +0300 |
---|---|---|
committer | David Karlaš <david.karlas@microsoft.com> | 2019-03-13 16:59:41 +0300 |
commit | 918cfc959860b224c8ab375e48622890ec4605e7 (patch) | |
tree | cac385794c7fc2467f0221227f304a7624e00b7f | |
parent | 14535c270ea9f8d536efe6852700d8d1cb657c1f (diff) |
Fix NSView embedding MouseMove event not working when popup window appears
-rw-r--r-- | packages/gtk+.py | 3 | ||||
-rw-r--r-- | packages/patches/gtk/0077-fix-nsview-embedding-mouse-move-event-when-popup-window-appears.patch | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/packages/gtk+.py b/packages/gtk+.py index 6b584d8..be37e28 100644 --- a/packages/gtk+.py +++ b/packages/gtk+.py @@ -219,7 +219,8 @@ class GtkPackage (GitHubPackage): 'patches/gtk/gtk-nsview-subview-focus-fixes.patch', 'patches/gtk/gtk-nsview-focus-tabbing.patch', 'patches/gtk/popup-combo-box-with-arrows.patch', - 'patches/gtk/0001-prevent-gdk-quartz-window-delegate-replacement.patch' + 'patches/gtk/0001-prevent-gdk-quartz-window-delegate-replacement.patch', + 'patches/gtk/0077-fix-nsview-embedding-mouse-move-event-when-popup-window-appears.patch' ]) def prep(self): diff --git a/packages/patches/gtk/0077-fix-nsview-embedding-mouse-move-event-when-popup-window-appears.patch b/packages/patches/gtk/0077-fix-nsview-embedding-mouse-move-event-when-popup-window-appears.patch new file mode 100644 index 0000000..9ebe750 --- /dev/null +++ b/packages/patches/gtk/0077-fix-nsview-embedding-mouse-move-event-when-popup-window-appears.patch @@ -0,0 +1,13 @@ +diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c +index 195899b13..3eecdde42 100644 +--- a/gdk/quartz/gdkevents-quartz.c ++++ b/gdk/quartz/gdkevents-quartz.c +@@ -932,7 +932,7 @@ find_window_for_ns_event (NSEvent *nsevent, + toplevel_private = (GdkWindowObject *)toplevel; + toplevel_impl = (GdkWindowImplQuartz *)toplevel_private->impl; + +- subview = find_nsview_at_pos (toplevel_impl, *x, *y); ++ subview = find_nsview_at_pos (toplevel_impl, x_tmp, y_tmp); + if (subview != NULL && ![subview isKindOfClass:[GdkQuartzView class]]) { + g_signal_emit_by_name (toplevel, "native-child-event", + subview, nsevent); |