Reset buffer resource pointer on destroy signal

This commit is contained in:
Versus Void 2017-10-03 18:57:23 +00:00
parent 5f3c56de28
commit 606311c755
2 changed files with 41 additions and 9 deletions

View file

@ -24,6 +24,7 @@ struct wlr_frame_callback {
struct wlr_surface_state {
uint32_t invalid;
struct wl_resource *buffer;
struct wl_listener buffer_destroy_listener;
int32_t sx, sy;
pixman_region32_t surface_damage, buffer_damage;
pixman_region32_t opaque, input;