From 606311c755066db94042a41fb1a3f027f67cacf8 Mon Sep 17 00:00:00 2001
From: Versus Void <versusvoid@gmail.com>
Date: Tue, 3 Oct 2017 18:57:23 +0000
Subject: Reset buffer resource pointer on destroy signal

---
 include/wlr/types/wlr_surface.h | 1 +
 1 file changed, 1 insertion(+)

(limited to 'include/wlr')

diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h
index ae278815..23e53811 100644
--- a/include/wlr/types/wlr_surface.h
+++ b/include/wlr/types/wlr_surface.h
@@ -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;
-- 
cgit v1.2.3