client: Use a surface for c:get_content()
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
146a5dd67c
commit
36924247ca
|
@ -1450,7 +1450,7 @@ luaA_client_get_content(lua_State *L, client_t *c)
|
|||
data[y * ximage->width + x] |= 0xff000000; /* set alpha to 0xff */
|
||||
}
|
||||
|
||||
retval = image_new_from_argb32(L, ximage->width, ximage->height, data);
|
||||
retval = luaA_surface_from_data(L, ximage->width, ximage->height, data);
|
||||
p_delete(&data);
|
||||
}
|
||||
xcb_image_destroy(ximage);
|
||||
|
|
Loading…
Reference in New Issue