From 7bce056f1d9490cf04166d3eb0183c9eec2204ff Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 5 Mar 2020 13:29:42 +0100 Subject: [PATCH] output: don't send a needs_frame event if already sent --- types/wlr_output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/wlr_output.c b/types/wlr_output.c index a1777fbe..580488be 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -683,6 +683,9 @@ bool wlr_output_export_dmabuf(struct wlr_output *output, } void wlr_output_update_needs_frame(struct wlr_output *output) { + if (output->needs_frame) { + return; + } output->needs_frame = true; wlr_signal_emit_safe(&output->events.needs_frame, output); }