From 3c9eb2ba156b96f7c714c8d1294e809eb76549a8 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Thu, 5 Oct 2023 14:48:55 +0200 Subject: [PATCH] output: Send frame events to disabled outputs This allows compositors to easily modeset disabled outputs from their existing render loop through the idle frame timer. --- types/output/output.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types/output/output.c b/types/output/output.c index 57b4c87e2..8f23ba734 100644 --- a/types/output/output.c +++ b/types/output/output.c @@ -877,9 +877,7 @@ void wlr_output_attach_buffer(struct wlr_output *output, void wlr_output_send_frame(struct wlr_output *output) { output->frame_pending = false; - if (output->enabled) { - wl_signal_emit_mutable(&output->events.frame, output); - } + wl_signal_emit_mutable(&output->events.frame, output); } static void schedule_frame_handle_idle_timer(void *data) {