aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authornyorain <nyorain@gmail.com>2017-08-10 12:42:35 +0200
committernyorain <nyorain@gmail.com>2017-08-10 12:42:35 +0200
commit31d78ff497865f5b0442f14adeac8987e1b7273d (patch)
treed6a7102207094c646e82cb5c343a24d82fe7adb8 /include/wlr
parent073dff63da7ef3ea744dddedbe7c59fec799372e (diff)
Fix wlr_surface destruction bug
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_surface.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h
index b80b1de4..a195798f 100644
--- a/include/wlr/types/wlr_surface.h
+++ b/include/wlr/types/wlr_surface.h
@@ -37,15 +37,17 @@ struct wlr_surface {
float surface_to_buffer_matrix[16];
struct {
- struct wl_signal destroy;
struct wl_signal commit;
} signals;
struct wl_list frame_callback_list; // wl_surface.frame
+
+ struct wl_listener compositor_listener; // destroy listener used by compositor
+ void *compositor_data;
};
struct wlr_renderer;
struct wlr_surface *wlr_surface_create(struct wl_resource *res,
- struct wlr_renderer *renderer);
+ struct wlr_renderer *renderer);
#endif