e wl - fix borders to keep cutouts working

in soem cases a client has no csd and then border l/r/t/b/ are all 0
so artifically keep 1 at 1... to keep cutouts working.

still need to solve blending still being on though.
This commit is contained in:
Carsten Haitzler 2019-08-07 21:15:00 +01:00
parent d4340cb168
commit 8884f27975
1 changed files with 5 additions and 0 deletions

View File

@ -4125,6 +4125,11 @@ e_comp_object_dirty(Evas_Object *obj)
if (bxx && byy)
{
bxx = w - (bx + bxx), byy = h - (by + byy);
// XXX: FIXME: - keep at least ONE border > 0 to allow cutouts to work
// evas doesnt have a good fix for this right now.... also
// we still BLEND the center bit anyway as we dont switch to non
// blend ... so ugh. evas issue tho.
if (byy < 1) byy = 1;
evas_object_image_border_set(cw->obj, bx, bxx, by, byy);
}
else