From 0d24fcafd0f12908b40b82986bc26db2762daf6f Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 9 Jul 2019 09:23:32 +0200 Subject: render: store frame callback pointer in terminal struct This allows us to free it when exiting --- terminal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 09b4a54a..a0ad718a 100644 --- a/terminal.h +++ b/terminal.h @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -241,7 +242,7 @@ struct terminal { cairo_font_extents_t fextents; struct wayland wl; - bool frame_is_scheduled; + struct wl_callback *frame_callback; }; void term_damage_all(struct terminal *term); -- cgit v1.3