output: check output enabled before sending frame
Similar to commit 85757665e6
("backend/drm: Check if output is enabled
before sending frame event"), check if the output is still enabled
before sending the frame event. This fixes the bug not only for the DRM
backend, but for wayland and X11 as well.
This commit is contained in:
parent
59b292b691
commit
aa78c50bf1
|
@ -924,7 +924,9 @@ void wlr_output_attach_buffer(struct wlr_output *output,
|
||||||
|
|
||||||
void wlr_output_send_frame(struct wlr_output *output) {
|
void wlr_output_send_frame(struct wlr_output *output) {
|
||||||
output->frame_pending = false;
|
output->frame_pending = false;
|
||||||
|
if (output->enabled) {
|
||||||
wlr_signal_emit_safe(&output->events.frame, output);
|
wlr_signal_emit_safe(&output->events.frame, output);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void schedule_frame_handle_idle_timer(void *data) {
|
static void schedule_frame_handle_idle_timer(void *data) {
|
||||||
|
|
Loading…
Reference in New Issue