backend-headless: Nuke band-aid

With commit a1f8c49d5b 'compositor: repaint backends separately'
we will be repainting outputs independently so there's no need to keep
this band-aid on.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2024-07-01 12:56:04 +03:00 committed by Daniel Stone
parent 52354f159f
commit e271b2ed99
1 changed files with 1 additions and 11 deletions

View File

@ -137,18 +137,8 @@ static int
finish_frame_handler(void *data)
{
struct headless_output *output = data;
struct timespec ts;
weston_compositor_read_presentation_clock(output->base.compositor, &ts);
/* If another output's repaint failed before this repaint finished,
* this repaint will have been cancelled by now. In this case we cannot
* go through finish_frame, because the repaint machinery does not
* expect this. */
if (output->base.repaint_status != REPAINT_AWAITING_COMPLETION)
return -1;
weston_output_finish_frame(&output->base, &ts, 0);
weston_output_finish_frame_from_timer(&output->base);
return 1;
}