Test output before direct scan-out

This avoids some log spam.

Eventually when we wire up the atomic test commit this will take care of
the other log spam referenced below.

References: https://github.com/swaywm/sway/pull/5010
References: https://github.com/swaywm/wlroots/issues/2181
Closes: https://github.com/swaywm/wlroots/issues/2532
master
Simon Ser 4 years ago committed by Tudor Brindus
parent fce8287a06
commit 33b64667ae

@ -548,10 +548,14 @@ static bool scan_out_fullscreen_view(struct sway_output *output,
return false; return false;
} }
wlr_output_attach_buffer(wlr_output, &surface->buffer->base);
if (!wlr_output_test(wlr_output)) {
return false;
}
wlr_presentation_surface_sampled_on_output(server.presentation, surface, wlr_presentation_surface_sampled_on_output(server.presentation, surface,
wlr_output); wlr_output);
wlr_output_attach_buffer(wlr_output, &surface->buffer->base);
return wlr_output_commit(wlr_output); return wlr_output_commit(wlr_output);
} }

Loading…
Cancel
Save