forked from enlightenment/enlightenment
req_window_oversize:
If a window likes to open with bigger initial coordinates bigger than the screen (minus ignore zones like not overlap allowed shelfes) the window should be sized to the maximum allowed size. SVN revision: 50028
This commit is contained in:
parent
e8d69bde2f
commit
c86c1144fe
|
@ -6447,11 +6447,34 @@ _e_border_eval(E_Border *bd)
|
|||
if (bd->new_client)
|
||||
{
|
||||
int zx, zy, zw, zh;
|
||||
int rw, rh;
|
||||
zx = zy = zw = zh = 0;
|
||||
|
||||
if (bd->zone)
|
||||
e_zone_useful_geometry_get(bd->zone, &zx, &zy, &zw, &zh);
|
||||
|
||||
/*
|
||||
* Limit maximum size of windows to useful geometry
|
||||
*/
|
||||
// ->
|
||||
if (bd->w > zw)
|
||||
rw = zw;
|
||||
else
|
||||
rw = bd->w;
|
||||
|
||||
if (bd->h > zh)
|
||||
rh = zh;
|
||||
else
|
||||
rh = bd->h;
|
||||
|
||||
if ((rw != bd->w) || (rh != bd->h))
|
||||
{
|
||||
bd->w = rw;
|
||||
bd->h = rh;
|
||||
e_border_resize (bd, bd->w, bd->h);
|
||||
}
|
||||
// <-
|
||||
|
||||
if (bd->re_manage)
|
||||
{
|
||||
bd->x -= bd->client_inset.l;
|
||||
|
|
Loading…
Reference in New Issue