mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue