mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-07 14:06:00 +01:00
output: add comment about needs_frame in wlr_output_schedule_frame
Add a comment to not forget why this call is necessary. References: https://github.com/swaywm/wlroots/pull/2053
This commit is contained in:
parent
41f9916ae5
commit
07737e85cc
1 changed files with 3 additions and 0 deletions
|
@ -621,6 +621,9 @@ static void schedule_frame_handle_idle_timer(void *data) {
|
|||
}
|
||||
|
||||
void wlr_output_schedule_frame(struct wlr_output *output) {
|
||||
// Make sure the compositor commits a new frame. This is necessary to make
|
||||
// clients which ask for frame callbacks without submitting a new buffer
|
||||
// work.
|
||||
wlr_output_update_needs_frame(output);
|
||||
|
||||
if (output->frame_pending || output->idle_frame != NULL) {
|
||||
|
|
Loading…
Reference in a new issue