only attempt to rescue offscreen clients if they are completely offscreen

This commit is contained in:
Mike Blumenkrantz 2016-03-31 14:03:02 -04:00
parent a9415f696b
commit a352a6d197
1 changed files with 1 additions and 1 deletions

View File

@ -1907,7 +1907,7 @@ _e_client_eval(E_Client *ec)
ec->placed = 1;
ec->pre_cb.x = ec->x; ec->pre_cb.y = ec->y;
}
else if (!E_INSIDE(ec->x, ec->y, zx, zy, zw, zh))
else if (!E_INTERSECTS(ec->x, ec->y, ec->w, ec->h, zx, zy, zw, zh))
{
/* If an ec is placed out of bound, fix it! */
ec->x = zx + ((zw - ec->w) / 2);