backend/headless: only schedule a new frame if buffer was submitted

A no-op commit should not schedule a new frame. This aligns the
headless backend with the rest of the backends.

This will be important to handle the enabled → disabled transition.
This commit is contained in:
Simon Ser 2023-06-27 15:53:02 +02:00 committed by Alexander Orzechowski
parent bfe8138210
commit 6c53f7badf

View File

@ -76,9 +76,9 @@ static bool output_commit(struct wlr_output *wlr_output,
.presented = true,
};
wlr_output_send_present(wlr_output, &present_event);
}
wl_event_source_timer_update(output->frame_timer, output->frame_delay);
}
return true;
}