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) {
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user