dnd-quartz: take hot spot into account when setting up drag

This commit is contained in:
Kristian Rietveld 2010-10-19 13:26:06 +02:00
parent a1134e5622
commit 8ac7f64123

View File

@ -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)