adjust non-x11 client's saved frame geometry when changing csd
this seems to be a more comprehensive solution for retaining previous window sizes after toggling various csd-affecting window states in wayland
This commit is contained in:
parent
b9e51e1c0d
commit
21017889b2
|
@ -2956,6 +2956,11 @@ e_comp_object_frame_geometry_set(Evas_Object *obj, int l, int r, int t, int b)
|
||||||
cw->ec->w += (l + r) - (cw->client_inset.l + cw->client_inset.r);
|
cw->ec->w += (l + r) - (cw->client_inset.l + cw->client_inset.r);
|
||||||
cw->ec->h += (t + b) - (cw->client_inset.t + cw->client_inset.b);
|
cw->ec->h += (t + b) - (cw->client_inset.t + cw->client_inset.b);
|
||||||
}
|
}
|
||||||
|
else if ((!e_client_has_xwindow(cw->ec)) && (cw->ec->maximized || cw->ec->fullscreen))
|
||||||
|
{
|
||||||
|
cw->ec->saved.w -= ((l + r) - (cw->client_inset.l + cw->client_inset.r));
|
||||||
|
cw->ec->saved.h -= ((t + b) - (cw->client_inset.t + cw->client_inset.b));
|
||||||
|
}
|
||||||
if (!cw->ec->new_client)
|
if (!cw->ec->new_client)
|
||||||
{
|
{
|
||||||
if (cw->client_inset.calc)
|
if (cw->client_inset.calc)
|
||||||
|
|
Loading…
Reference in New Issue