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.
This commit is contained in:
Kenny Levinsen 2023-10-05 14:48:55 +02:00
parent e0adaaffb6
commit 3c9eb2ba15

View file

@ -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) {