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:
authorCody Russell <cody@jhu.edu>2018-05-30 17:14:27 +0300
committerCody Russell <cody@jhu.edu>2018-05-30 17:14:27 +0300
commit8913e396e20aab98b8a6af4fa94a2617453926ca (patch)
treea2c4990bff01074f4339fe5d3397c263fc13d1ee
parent1312ed00af489c8fd19c32018c8dc3b86d1885eb (diff)
[gtk] Fix for recursive find_nsview_at_pos()
-rw-r--r--packages/gtk+.py4
-rw-r--r--packages/patches/gtk/gtk-fix-find_nsview_at_pos-recursive.patch13
2 files changed, 16 insertions, 1 deletions
diff --git a/packages/gtk+.py b/packages/gtk+.py
index 88a138f..6ae9c25 100644
--- a/packages/gtk+.py
+++ b/packages/gtk+.py
@@ -208,7 +208,9 @@ class GtkPackage (GitHubPackage):
# https://developercommunity.visualstudio.com/content/problem/104471/visual-studio-for-mac-720540-cannot-launch-exc-bre.html
'patches/gtk/update_only_apple_keyboard_layout.patch',
- 'patches/gtk/gtk-backing-scale-factor.patch'
+ 'patches/gtk/gtk-backing-scale-factor.patch',
+
+ 'patches/gtk-fix-find_nsview_at_pos-recursive.patch'
])
def prep(self):
diff --git a/packages/patches/gtk/gtk-fix-find_nsview_at_pos-recursive.patch b/packages/patches/gtk/gtk-fix-find_nsview_at_pos-recursive.patch
new file mode 100644
index 0000000..ef090fa
--- /dev/null
+++ b/packages/patches/gtk/gtk-fix-find_nsview_at_pos-recursive.patch
@@ -0,0 +1,13 @@
+diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
+index 195899b13b..844128e0b2 100644
+--- a/gdk/quartz/gdkevents-quartz.c
++++ b/gdk/quartz/gdkevents-quartz.c
+@@ -748,7 +748,7 @@ find_nsview_at_pos (GdkWindowImplQuartz *impl, gint x, gint y)
+ if (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);
++ NSView* child = find_nsview_at_pos (sv, x - r.origin.x, y - r.origin.y);
+ if (child != NULL)
+ return child;
+ else