From b296481007f79481a90a82f3dee3aead2883d00c Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 19 Jan 2018 13:14:16 +0100 Subject: rootston: remove repaint timer, listen for damage instead --- include/rootston/output.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/rootston') diff --git a/include/rootston/output.h b/include/rootston/output.h index 8d5550af..a80e1f49 100644 --- a/include/rootston/output.h +++ b/include/rootston/output.h @@ -16,10 +16,11 @@ struct roots_output { struct timespec last_frame; pixman_region32_t damage, previous_damage; - struct wl_event_source *repaint_timer; + bool frame_scheduled; struct wl_listener frame; struct wl_listener mode; + struct wl_listener damage_listener; }; void output_add_notify(struct wl_listener *listener, void *data); -- cgit v1.2.3