rootston: do not swap buffers when output isn't damaged

This commit is contained in:
emersion 2018-01-18 11:42:54 +01:00
parent 1a084807ce
commit 5089f2d9fb
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 24 additions and 6 deletions

View file

@ -10,11 +10,14 @@ struct roots_desktop;
struct roots_output {
struct roots_desktop *desktop;
struct wlr_output *wlr_output;
struct wl_list link; // roots_desktop:outputs
struct roots_view *fullscreen_view;
struct wl_listener frame;
struct timespec last_frame;
struct wl_list link; // roots_desktop:outputs
struct roots_view *fullscreen_view;
pixman_region32_t damage;
struct wl_event_source *repaint_timer;
};
void output_add_notify(struct wl_listener *listener, void *data);