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:
parent
e508635c6e
commit
245c58842b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user