diff options
author | Marten Ringwelski <git@maringuu.de> | 2020-10-29 12:36:13 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-10-30 10:04:54 +0100 |
commit | 85757665e6e1393773b36282aa244feb10b7a5fe (patch) | |
tree | ede5cdc7bfcff93542b5b7b7d59953666ac4431f /backend | |
parent | 346188c01511d3a6432f6fdaf43823cf58a8efca (diff) |
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.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |