From: Mike Blumenkrantz Date: Wed, 5 Mar 2014 14:29:54 +0000 (-0500) Subject: simplify maximize shelf fill visibility check X-Git-Tag: upstream/0.19.99~1422 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee6b8e8c3862215064d0bb473e016a319d5359be;p=platform%2Fupstream%2Fenlightenment.git simplify maximize shelf fill visibility check --- diff --git a/src/bin/e_maximize.c b/src/bin/e_maximize.c index d8c5c15..df3bc45 100644 --- a/src/bin/e_maximize.c +++ b/src/bin/e_maximize.c @@ -137,25 +137,9 @@ e_maximize_client_shelf_fill(E_Client *ec, int *x1, int *yy1, int *x2, int *y2, E_Config_Shelf_Desk *sd; if (es->cfg->overlap) continue; - if (es->zone != ec->zone) continue; - if (es->cfg->desk_show_mode) - { - EINA_LIST_FOREACH(es->cfg->desk_list, ll, sd) - { - if (!sd) continue; - if ((sd->x == ec->desk->x) && (sd->y == ec->desk->y)) - { - OBSTACLE(es->x + es->zone->x, es->y + es->zone->y, - es->x + es->zone->x + es->w, es->y + es->zone->y + es->h); - break; - } - } - } - else - { - OBSTACLE(es->x + es->zone->x, es->y + es->zone->y, - es->x + es->zone->x + es->w, es->y + es->zone->y + es->h); - } + if (!e_shelf_desk_visible(es, ec->desk)) continue; + OBSTACLE(es->x + es->zone->x, es->y + es->zone->y, + es->x + es->zone->x + es->w, es->y + es->zone->y + es->h); } if (rects) {