clamp client calc geometry to zone when maximizing

This commit is contained in:
Mike Blumenkrantz 2014-05-30 15:53:37 -04:00
parent 7bc59d01fe
commit 5f731a8a63
1 changed files with 2 additions and 2 deletions

View File

@ -176,8 +176,8 @@ _e_maximize_client_rects_fill(E_Client *ec, Eina_List *rects, int *x1, int *yy1,
{
int bx, by, bw, bh;
bx = ec->x;
by = ec->y;
bx = E_CLAMP(ec->x, ec->zone->x, ec->zone->x + ec->zone->w);
bx = E_CLAMP(ec->y, ec->zone->y, ec->zone->y + ec->zone->h);
bw = ec->w;
bh = ec->h;