aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_output.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 741ecf0b..eea282dc 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -924,7 +924,9 @@ void wlr_output_attach_buffer(struct wlr_output *output,
void wlr_output_send_frame(struct wlr_output *output) {
output->frame_pending = false;
- wlr_signal_emit_safe(&output->events.frame, output);
+ if (output->enabled) {
+ wlr_signal_emit_safe(&output->events.frame, output);
+ }
}
static void schedule_frame_handle_idle_timer(void *data) {