aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-03-05 13:29:42 +0100
committerDrew DeVault <sir@cmpwn.com>2020-03-06 21:35:00 +0100
commit7bce056f1d9490cf04166d3eb0183c9eec2204ff (patch)
tree29f6611ed4162a98d2418a2a0057b1270163913c
parenta4c7c6db097c8f493a88a1f0ef5c6f0c78f70e01 (diff)
output: don't send a needs_frame event if already sent
-rw-r--r--types/wlr_output.c3
1 files changed, 3 insertions, 0 deletions
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);
}