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:
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);
|
||||
|
||||
if (drm->session->active) {
|
||||
if (drm->session->active && conn->output.enabled) {
|
||||
wlr_output_send_frame(&conn->output);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue