diff options
author | Simon Ser <contact@emersion.fr> | 2020-03-05 13:53:29 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-03-06 21:37:53 +0100 |
commit | 241684eb1dc7ae690510871cae6fcc463daf112d (patch) | |
tree | 0611c20e1c906df46b0fd4f56f2c783a7c2fe329 | |
parent | f5ba8006c9ee9df454a4f5736dde4b756bd1072b (diff) |
Drop sway_output.surface_needs_frame
wlr_output_schedule_frame now sets output->needs_frame [1], so this
isn't needed anymore.
[1]: https://github.com/swaywm/wlroots/pull/2053
-rw-r--r-- | include/sway/output.h | 1 | ||||
-rw-r--r-- | sway/desktop/output.c | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/include/sway/output.h b/include/sway/output.h index ccc1097f..4771b14f 100644 --- a/include/sway/output.h +++ b/include/sway/output.h @@ -57,7 +57,6 @@ struct sway_output { uint32_t refresh_nsec; int max_render_time; // In milliseconds struct wl_event_source *repaint_timer; - bool surface_needs_frame; }; struct sway_output *output_create(struct wlr_output *wlr_output); diff --git a/sway/desktop/output.c b/sway/desktop/output.c index ab28f25c..b78e0819 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -515,9 +515,6 @@ static int output_repaint_timer_handler(void *data) { output->wlr_output->frame_pending = false; - bool surface_needs_frame = output->surface_needs_frame; - output->surface_needs_frame = false; - struct sway_workspace *workspace = output->current.active_workspace; if (workspace == NULL) { return 0; @@ -562,10 +559,6 @@ static int output_repaint_timer_handler(void *data) { output_render(output, &now, &damage); } else { wlr_output_rollback(output->wlr_output); - - if (surface_needs_frame) { - wlr_output_schedule_frame(output->wlr_output); - } } pixman_region32_fini(&damage); @@ -682,7 +675,6 @@ static void damage_surface_iterator(struct sway_output *output, struct sway_view } if (!wl_list_empty(&surface->current.frame_callback_list)) { - output->surface_needs_frame = true; wlr_output_schedule_frame(output->wlr_output); } } |