Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bockover <abock@microsoft.com>2019-03-15 18:07:54 +0300
committerGitHub <noreply@github.com>2019-03-15 18:07:54 +0300
commit05bf10e45e37f91356a511596b2d8ad9a1b78c7c (patch)
treecac385794c7fc2467f0221227f304a7624e00b7f
parent14535c270ea9f8d536efe6852700d8d1cb657c1f (diff)
parent918cfc959860b224c8ab375e48622890ec4605e7 (diff)
Merge pull request #91 from DavidKarlas/fixMouseMoveWhenNewWindow
Fix NSView embedding MouseMove event not working when popup window appears
-rw-r--r--packages/gtk+.py3
-rw-r--r--packages/patches/gtk/0077-fix-nsview-embedding-mouse-move-event-when-popup-window-appears.patch13
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);