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
This commit is contained in:
Stefano Facchini 2012-02-11 11:07:04 +01:00
parent e508635c6e
commit 245c58842b

View File

@ -113,10 +113,11 @@ const XdndHandler = new Lang.Class({
while (pickedActor) { while (pickedActor) {
if (pickedActor._delegate && pickedActor._delegate.handleDragOver) { if (pickedActor._delegate && pickedActor._delegate.handleDragOver) {
let [r, targX, targY] = pickedActor.transform_stage_point(x, y);
let result = pickedActor._delegate.handleDragOver(this, let result = pickedActor._delegate.handleDragOver(this,
dragEvent.dragActor, dragEvent.dragActor,
x, targX,
y, targY,
global.get_current_time()); global.get_current_time());
if (result != DND.DragMotionResult.CONTINUE) if (result != DND.DragMotionResult.CONTINUE)
return; return;