From 5089f2d9fbcbc76c985e3a93b6fb694b57f116aa Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 18 Jan 2018 11:42:54 +0100 Subject: rootston: do not swap buffers when output isn't damaged --- include/rootston/output.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/rootston/output.h b/include/rootston/output.h index e7f49227..d44479ed 100644 --- a/include/rootston/output.h +++ b/include/rootston/output.h @@ -10,11 +10,14 @@ struct roots_desktop; struct roots_output { struct roots_desktop *desktop; struct wlr_output *wlr_output; - struct wl_listener frame; - struct timespec last_frame; struct wl_list link; // roots_desktop:outputs + struct roots_view *fullscreen_view; + + struct wl_listener frame; + struct timespec last_frame; pixman_region32_t damage; + struct wl_event_source *repaint_timer; }; void output_add_notify(struct wl_listener *listener, void *data); -- cgit v1.2.3