aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2019-11-30 16:59:52 +0100
committerSimon Ser <contact@emersion.fr>2019-12-01 12:44:07 +0100
commit275af2ad62596c11c1c7b31bcb1ca740e2e04fe1 (patch)
tree3e8c6d74cdebff7f78e6df422260006f9e4f2a55
parentd1eab10266eabbcb33eeb9178491234d059dbe99 (diff)
output: Restore previous max_render_time behavior
-rw-r--r--sway/desktop/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 97ea2e7c..6b0ceee1 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -426,7 +426,7 @@ static void send_frame_done_iterator(struct sway_output *output, struct sway_vie
int delay = data->msec_until_refresh - output->max_render_time
- view_max_render_time;
- if ((output->max_render_time == 0 && view_max_render_time == 0) || delay < 1) {
+ if (output->max_render_time == 0 || view_max_render_time == 0 || delay < 1) {
wlr_surface_send_frame_done(surface, &data->when);
} else {
struct sway_surface *sway_surface = surface->data;