improve maximize calculations for vertical shelves

This commit is contained in:
Mike Blumenkrantz 2014-05-30 15:55:21 -04:00
parent 5f731a8a63
commit 60aee8d0b9
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ _e_maximize_client_rects_fill_vert(E_Client *ec, Eina_List *rects, int *yy1, int
/* Expand up */
EINA_LIST_FOREACH(rects, l, rect)
{
if ((rect->y2 > cy1) && (rect->y2 <= *by) &&
if ((rect->y2 > cy1) && ((rect->yy1 <= *by) || (rect->y2 <= *by)) &&
E_INTERSECTS(rect->x1, 0, (rect->x2 - rect->x1), ec->zone->h, *bx, 0, *bw, ec->zone->h))
{
cy1 = rect->y2;