ecore: fix dnd for 'shaped' windows. added rect offset to 'inside' check
authorjeffdameth <jeffdameth@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 16 Jun 2011 21:10:41 +0000 (21:10 +0000)
committerjeffdameth <jeffdameth@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 16 Jun 2011 21:10:41 +0000 (21:10 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@60409 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_x/xlib/ecore_x_window.c

index c5f3c35..2608807 100644 (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;