forked from enlightenment/enlightenment
clamp client geometry to zone during geometry calc
somehow it was possible for client sizes to overflow the zone geometry here which would end up breaking maximization limits and result in clients not respecting various geometry boundaries
This commit is contained in:
parent
37c146435d
commit
f3edf38e49
|
@ -178,8 +178,8 @@ _e_maximize_client_rects_fill(E_Client *ec, Eina_List *rects, int *x1, int *yy1,
|
|||
|
||||
bx = E_CLAMP(ec->x, ec->zone->x, ec->zone->x + ec->zone->w);
|
||||
by = E_CLAMP(ec->y, ec->zone->y, ec->zone->y + ec->zone->h);
|
||||
bw = ec->w;
|
||||
bh = ec->h;
|
||||
bw = E_CLAMP(ec->w, 0, ec->zone->w);
|
||||
bh = E_CLAMP(ec->h, 0, ec->zone->h);
|
||||
|
||||
if ((dir & E_MAXIMIZE_DIRECTION) == E_MAXIMIZE_HORIZONTAL)
|
||||
_e_maximize_client_rects_fill_horiz(ec, rects, x1, x2, &bx, &by, &bw, &bh);
|
||||
|
|
Loading…
Reference in New Issue