backend/drm: Check if output is enabled before sending frame event

When an output is disabled one last pageflip will happen to disable it.
Currently this pageflip causes a frame event.
Since the output is disabled we don't want to send this frame event.
master
Marten Ringwelski 4 years ago committed by Simon Ser
parent 346188c015
commit 85757665e6

@ -1523,7 +1523,7 @@ static void page_flip_handler(int fd, unsigned seq,
}; };
wlr_output_send_present(&conn->output, &present_event); wlr_output_send_present(&conn->output, &present_event);
if (drm->session->active) { if (drm->session->active && conn->output.enabled) {
wlr_output_send_frame(&conn->output); wlr_output_send_frame(&conn->output);
} }
} }

Loading…
Cancel
Save