Set the surface user data to be the current buffer.

NB: This is needed because some compositors (Weston) are expecting
wl_surface_get_user_data to return a buffer.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-05-21 10:51:15 +01:00
parent 8c9353e3ec
commit bfc7e7cfd1
1 changed files with 1 additions and 0 deletions

View File

@ -486,6 +486,7 @@ _evas_swapper_buffer_put(Wl_Swapper *ws, Wl_Buffer *wb, Eina_Rectangle *rects, u
if (sent != wb)
{
wl_surface_attach(ws->surface, wb->buffer, ws->dx, ws->dy);
wl_surface_set_user_data(ws->surface, wb->buffer);
ws->dx = 0;
ws->dy = 0;
sent = wb;