ecore evas x - on argb dont create unused 1 bit pixmap masks

found out we had a wasted 1 bit pixmap mask for argb windows left over
from shaped window support... so don't create it. drop resources a bit.

@fix
This commit is contained in:
Carsten Haitzler 2020-03-16 20:34:57 +00:00
parent 69d6ca28ab
commit 60f8495d80
1 changed files with 6 additions and 1 deletions

View File

@ -785,7 +785,12 @@ _resize_shape_do(Ecore_Evas *ee)
evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
if (edata->mask) ecore_x_pixmap_free(edata->mask);
if (edata->mask)
{
ecore_x_pixmap_free(edata->mask);
edata->mask = 0;
}
if (!ee->shaped) return;
edata->mask = ecore_x_pixmap_new(ee->prop.window, ee->w + fw, ee->h + fh, 1);
foreground = 0;
gc = ecore_x_gc_new(edata->mask,