summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/x/ecore_evas_x.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-03-16 20:34:57 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-03-17 09:50:49 +0000
commit60f8495d809c3e140ce53d1fb185d96e5e58e608 (patch)
tree0e097b51f0b7d9c8472b08de752c75c2ddf77e41 /src/modules/ecore_evas/engines/x/ecore_evas_x.c
parent69d6ca28ab34695e5c28bba5e20ee693f4ee54dd (diff)
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
Diffstat (limited to '')
-rw-r--r--src/modules/ecore_evas/engines/x/ecore_evas_x.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/x/ecore_evas_x.c b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
index 9cd68a935b..ed95594413 100644
--- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c
+++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
@@ -785,7 +785,12 @@ _resize_shape_do(Ecore_Evas *ee)
785 785
786 evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh); 786 evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
787 787
788 if (edata->mask) ecore_x_pixmap_free(edata->mask); 788 if (edata->mask)
789 {
790 ecore_x_pixmap_free(edata->mask);
791 edata->mask = 0;
792 }
793 if (!ee->shaped) return;
789 edata->mask = ecore_x_pixmap_new(ee->prop.window, ee->w + fw, ee->h + fh, 1); 794 edata->mask = ecore_x_pixmap_new(ee->prop.window, ee->w + fw, ee->h + fh, 1);
790 foreground = 0; 795 foreground = 0;
791 gc = ecore_x_gc_new(edata->mask, 796 gc = ecore_x_gc_new(edata->mask,