devilhorns pushed a commit to branch master.
commit bfc7e7cfd168d426b121de7cdb6998f3551b54d4
Author: Chris Michael <[email protected]>
Date: Tue May 21 10:51:15 2013 +0100
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 <[email protected]>
---
src/modules/evas/engines/wayland_shm/evas_swapper.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/modules/evas/engines/wayland_shm/evas_swapper.c
b/src/modules/evas/engines/wayland_shm/evas_swapper.c
index 825bf0e..73764a0 100644
--- a/src/modules/evas/engines/wayland_shm/evas_swapper.c
+++ b/src/modules/evas/engines/wayland_shm/evas_swapper.c
@@ -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;
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may