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.
master
Simon Ser 2 years ago committed by Alexander Orzechowski
parent bfe8138210
commit 6c53f7badf

@ -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);
wl_event_source_timer_update(output->frame_timer, output->frame_delay);
}
return true;
}

Loading…
Cancel
Save