Fix issue of compositor surface create passing wrong parameter to

e_pixmap_new function

e_pixmap_new (when creating wayland windows) is expecting to get a
uintptr_t type passed into it (surface id). Previously we were passing
the entire wl_resource.

ref T3058

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
Chris Michael 2016-01-19 10:44:37 -05:00
parent 37ad839f51
commit 67170f40a1
1 changed files with 1 additions and 1 deletions

View File

@ -1502,7 +1502,7 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
E_Pixmap *ep;
/* try to create new pixmap */
if (!(ep = e_pixmap_new(E_PIXMAP_TYPE_WL, res)))
if (!(ep = e_pixmap_new(E_PIXMAP_TYPE_WL, (uintptr_t)id)))
{
ERR("Could not create new pixmap");
wl_resource_destroy(res);