rootston: remove repaint timer, listen for damage instead

This commit is contained in:
emersion 2018-01-19 13:14:16 +01:00
parent a0f24b809e
commit b296481007
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 37 additions and 21 deletions

View file

@ -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);