[gtk/wip/chergert/quartz4u: 133/142] macos: take hotspot into account when moving
- From: Christian Hergert <chergert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk/wip/chergert/quartz4u: 133/142] macos: take hotspot into account when moving
 
- Date: Tue, 23 Jun 2020 18:40:58 +0000 (UTC)
 
commit cf845616530e146611d59b2c9eb9b6c4bcf41a92
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]