[gtk/wip/chergert/quartz4u: 102/116] macos: take hotspot into account when moving



commit a7df673f2b294bbbdd301497b68a55f9ff33c2e4
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jun 18 13:28:32 2020 -0700

    macos: take hotspot into account when moving

 gdk/macos/gdkmacosdrag.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/macos/gdkmacosdrag.c b/gdk/macos/gdkmacosdrag.c
index e0f47db822..afa488e308 100644
--- a/gdk/macos/gdkmacosdrag.c
+++ b/gdk/macos/gdkmacosdrag.c
@@ -217,8 +217,8 @@ gdk_drag_update (GdkDrag         *drag,
                                 &possible_actions);
 
   _gdk_macos_drag_surface_drag_motion (self->drag_surface,
-                                       x_root,
-                                       y_root,
+                                       x_root - self->hot_x,
+                                       y_root - self->hot_y,
                                        suggested_action,
                                        possible_actions,
                                        evtime);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]