types/wlr_surface: get buffer size from wlr_buffer_import

This commit is contained in:
Simon Zeni 2021-07-07 14:28:37 -04:00 committed by Simon Ser
parent 6d8029b07e
commit d086501fba
2 changed files with 26 additions and 4 deletions

View file

@ -35,6 +35,7 @@ struct wlr_surface_state {
// overflow.
uint32_t seq;
struct wlr_buffer *buffer;
struct wl_resource *buffer_resource;
int32_t dx, dy; // relative to previous position
pixman_region32_t surface_damage, buffer_damage; // clipped to bounds