From 245c58842b0bae82708501fb1ec4e6806b95eabd Mon Sep 17 00:00:00 2001 From: Stefano Facchini Date: Sat, 11 Feb 2012 11:07:04 +0100 Subject: [PATCH] xdndHandler: pass actor-relative coordinates to handleDragOver This is more reasonable and consistent with what is done in dnd.js. https://bugzilla.gnome.org/show_bug.cgi?id=669887 --- js/ui/xdndHandler.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/ui/xdndHandler.js b/js/ui/xdndHandler.js index dede07e1a..8a24bc2d6 100644 --- a/js/ui/xdndHandler.js +++ b/js/ui/xdndHandler.js @@ -113,10 +113,11 @@ const XdndHandler = new Lang.Class({ while (pickedActor) { if (pickedActor._delegate && pickedActor._delegate.handleDragOver) { + let [r, targX, targY] = pickedActor.transform_stage_point(x, y); let result = pickedActor._delegate.handleDragOver(this, dragEvent.dragActor, - x, - y, + targX, + targY, global.get_current_time()); if (result != DND.DragMotionResult.CONTINUE) return;