From 14f44ef6e3c9ae0831cb32b5b12a1440724b675e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 16 Apr 2015 14:34:54 -0400 Subject: [PATCH] fix pixmap image clearing based on pixmap type !@%!@$#!# borkerhorns!!!!!! invalidates T2291 --- src/bin/e_pixmap.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index a558e910c..7be5534fe 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -601,10 +601,12 @@ e_pixmap_image_clear(E_Pixmap *cp, Eina_Bool cache) if (!cache) { #ifndef HAVE_WAYLAND_ONLY - if (!cp->image) return; + if (e_pixmap_is_x(cp)) + if (!cp->image) return; #endif -#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY) - if (!cp->buffer_ref.buffer) return; +#ifdef HAVE_WAYLAND + if (cp->type == E_PIXMAP_TYPE_WL) + if (!cp->buffer_ref.buffer) return; #endif }