ecore: fix dnd for 'shaped' windows. added rect offset to 'inside' check

SVN revision: 60409
This commit is contained in:
Hannes Janetzek 2011-06-16 21:10:41 +00:00
parent 092d2d861b
commit 8d783d1ee8
1 changed files with 2 additions and 2 deletions

View File

@ -1014,8 +1014,8 @@ _inside_rects(Shadow *s, int x, int y, int bx, int by, Ecore_X_Rectangle *rects,
{
if ((x >= s->x + bx + rects[i].x) &&
(y >= s->y + by + rects[i].y) &&
(x < (int)(s->x + bx + rects[i].width)) &&
(y < (int)(s->y + by + rects[i].height)))
(x < (int)(s->x + bx + rects[i].x + rects[i].width)) &&
(y < (int)(s->y + by + rects[i].y + rects[i].height)))
{
inside = 1;
break;