forked from enlightenment/enlightenment
lets drop icons correctly if efm view is not at 0,0
SVN revision: 65592
This commit is contained in:
parent
7e0ff05ad1
commit
db3621837a
|
@ -6257,8 +6257,16 @@ _e_fm2_cb_dnd_drop(void *data, const char *type, void *event)
|
|||
/* dnd doesn't tell me all the co-ords of the icons being dragged so i can't place them accurately.
|
||||
* need to fix this. ev->data probably needs to become more compelx than a list of url's
|
||||
*/
|
||||
x = ev->x + (ic->x - ox) - ic->drag.x + sd->pos.x;
|
||||
y = ev->y + (ic->y - oy) - ic->drag.y + sd->pos.y;
|
||||
|
||||
x = ev->x + (ic->x - ox) - ic->drag.x + sd->pos.x - sd->x;
|
||||
y = ev->y + (ic->y - oy) - ic->drag.y + sd->pos.y - sd->y;
|
||||
|
||||
printf("drop ev x, y: %i %i \n", ev->x, ev->y);
|
||||
printf("ic x, y: %i %i \n", ic->x, ic->y);
|
||||
printf("orig x, y: %i %i \n", ox, oy);
|
||||
printf("ic->drag x, y: %i %i \n", ic->drag.x, ic->drag.y);
|
||||
printf("sd->pos x, y: %i %i \n", sd->pos.x, sd->pos.y);
|
||||
printf("x, y of drop: %i %i \n", x, y);
|
||||
|
||||
if (x < 0) x = 0;
|
||||
if (y < 0) y = 0;
|
||||
|
|
Loading…
Reference in New Issue