mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 17:30:10 +00:00
dnd-quartz: take hot spot into account when setting up drag
This commit is contained in:
parent
a1134e5622
commit
8ac7f64123
@ -1080,6 +1080,9 @@ gtk_drag_begin_idle (gpointer arg)
|
||||
|
||||
drag_image = _gtk_quartz_create_image_from_pixbuf (info->icon_pixbuf);
|
||||
|
||||
point.x -= info->hot_x;
|
||||
point.y -= info->hot_y;
|
||||
|
||||
[nswindow dragImage:drag_image
|
||||
at:point
|
||||
offset:NSMakeSize(0, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user