aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-09 07:23:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-09 07:23:32 +0000
commit0d24fcafd0f12908b40b82986bc26db2762daf6f (patch)
tree3e3c3b4e6307d614c49036a6b8a3e7b897aaf489 /terminal.h
parentcleanup (diff)
render: store frame callback pointer in terminal struct
This allows us to free it when exiting
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index 09b4a54a..a0ad718a 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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);