mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
output: add block_idle_frame
This commit is contained in:
parent
41cbb80e25
commit
cbb2781fed
2 changed files with 4 additions and 1 deletions
|
|
@ -541,7 +541,8 @@ void wlr_output_send_frame(struct wlr_output *output) {
|
|||
static void schedule_frame_handle_idle_timer(void *data) {
|
||||
struct wlr_output *output = data;
|
||||
output->idle_frame = NULL;
|
||||
if (!output->frame_pending && output->impl->schedule_frame) {
|
||||
if (!output->frame_pending && output->impl->schedule_frame
|
||||
&& !output->block_idle_frame) {
|
||||
// Ask the backend to send a frame event when appropriate
|
||||
if (output->impl->schedule_frame(output)) {
|
||||
output->frame_pending = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue