From 85757665e6e1393773b36282aa244feb10b7a5fe Mon Sep 17 00:00:00 2001 From: Marten Ringwelski Date: Thu, 29 Oct 2020 12:36:13 +0100 Subject: 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. --- backend/drm/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/drm') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index dafe807b..03cd9318 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -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); } } -- cgit v1.2.3