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.
This commit is contained in:
Marten Ringwelski 2020-10-29 12:36:13 +01:00 committed by Simon Ser
parent 346188c015
commit 85757665e6

View file

@ -1523,7 +1523,7 @@ static void page_flip_handler(int fd, unsigned seq,
};
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);
}
}