set pixmap image borders for wayland clients

This commit is contained in:
Mike Blumenkrantz 2015-02-09 21:15:50 -05:00
parent b0ef692817
commit ce062750b6
1 changed files with 15 additions and 0 deletions

View File

@ -2681,8 +2681,23 @@ e_comp_wl_surface_commit(E_Client *ec)
if ((src = eina_tiler_intersection(ec->comp_data->pending.opaque, tmp)))
{
Eina_Rectangle *rect;
Eina_Iterator *itr;
itr = eina_tiler_iterator_new(src);
/* this must be exactly 1 rect */
EINA_ITERATOR_FOREACH(itr, rect)
{
e_pixmap_image_border_set(ec->pixmap, rect->x, ec->client.w - rect->x,
rect->y, ec->client.h - rect->y);
break;
}
eina_iterator_free(itr);
eina_tiler_free(src);
}
else
e_pixmap_image_border_set(ec->pixmap, 0, 0, 0, 0);
eina_tiler_free(tmp);
eina_tiler_clear(ec->comp_data->pending.opaque);