slight ibar dnd optimization when checking taskbar apps for drop site
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 11 Mar 2015 20:00:34 +0000 (16:00 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 11 Mar 2015 20:02:57 +0000 (16:02 -0400)
src/modules/ibar/e_mod_main.c

index 0957005..31ab39c 100644 (file)
@@ -771,16 +771,11 @@ _ibar_icon_at_coord(IBar *b, Evas_Coord x, Evas_Coord y)
      {
         Evas_Coord dx, dy, dw, dh;
 
+        /* block drops in the non-order section */
+        if (ic->not_in_order) continue;
         evas_object_geometry_get(ic->o_holder, &dx, &dy, &dw, &dh);
         if (E_INSIDE(x, y, dx, dy, dw, dh))
-          {
-             if (ic->not_in_order)
-               {
-                  /* block drops in the non-order section */
-                  return NULL;
-               }
-             return ic;
-          }
+          return ic;
      }
    return NULL;
 }