forked from enlightenment/enlightenment
correctly set/update wl opaque regions
This commit is contained in:
parent
1bf6603baa
commit
bce8470cef
|
@ -1030,6 +1030,7 @@ _e_comp_wl_surface_cb_opaque_region_set(struct wl_client *client EINA_UNUSED, st
|
|||
/* trap for clients which are being deleted */
|
||||
if (e_object_is_del(E_OBJECT(ec))) return;
|
||||
|
||||
eina_tiler_clear(ec->comp_data->pending.opaque);
|
||||
if (region_resource)
|
||||
{
|
||||
Eina_Tiler *tmp;
|
||||
|
@ -1040,12 +1041,6 @@ _e_comp_wl_surface_cb_opaque_region_set(struct wl_client *client EINA_UNUSED, st
|
|||
|
||||
eina_tiler_union(ec->comp_data->pending.opaque, tmp);
|
||||
}
|
||||
else
|
||||
{
|
||||
eina_tiler_clear(ec->comp_data->pending.opaque);
|
||||
eina_tiler_rect_add(ec->comp_data->pending.opaque,
|
||||
&(Eina_Rectangle){0, 0, ec->client.w, ec->client.h});
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue