cases where we are running wayland clients)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
{
case E_PIXMAP_TYPE_X:
#ifndef HAVE_WAYLAND_ONLY
+ if (cp->image) return EINA_TRUE;
if ((!cp->visual) || (!cp->client->depth)) return EINA_FALSE;
cp->image = ecore_x_image_new(cp->w, cp->h, cp->visual, cp->client->depth);
if (cp->image)
EINA_SAFETY_ON_NULL_RETURN_VAL(cp, EINA_FALSE);
#ifndef HAVE_WAYLAND_ONLY
- return !!cp->image;
+ if (cp->type == E_PIXMAP_TYPE_X)
+ return !!cp->image;
#endif
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
return (cp->resource != NULL);