render: store frame callback pointer in terminal struct

This allows us to free it when exiting
This commit is contained in:
Daniel Eklöf 2019-07-09 09:23:32 +02:00
parent d7bb83022d
commit 0d24fcafd0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 11 additions and 7 deletions

View file

@ -7,6 +7,7 @@
#include <threads.h>
#include <cairo.h>
#include <wayland-client.h>
#include <xkbcommon/xkbcommon.h>
#include <xkbcommon/xkbcommon-keysyms.h>
@ -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);