{
Ecore_Wl_Window *parent;
- wl_subsurface_destroy(ess->subsurface);
- wl_surface_destroy(ess->surface);
+ if (!ess) return;
+
+ if (ess->subsurface)
+ wl_subsurface_destroy(ess->subsurface);
+
+ if (ess->surface)
+ wl_surface_destroy(ess->surface);
parent = ess->parent_win;
parent->subsurfs = (Ecore_Wl_Subsurf *)eina_inlist_remove
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ess) return;
+ if (!ess->subsurface) return;
if ((x == ess->x) && (y == ess->y))
return;
if (!ess) return;
if (!surface) return;
+ if (!ess->subsurface) return;
wl_subsurface_place_above(ess->subsurface, surface);
}
if (!ess) return;
if (!surface) return;
+ if (!ess->subsurface) return;
wl_subsurface_place_below(ess->subsurface, surface);
}
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ess) return;
+ if (!ess->subsurface) return;
val = !!val;
if (val == ess->sync) return;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ess) return;
+ if (!ess->surface) return;
if ((w > 0) && (h > 0))
{
region = wl_compositor_create_region(_ecore_wl_compositor_get());
+ if (!region) return;
+
wl_region_add(region, x, y, w, h);
wl_surface_set_opaque_region(ess->surface, region);
wl_region_destroy(region);