From c93016028680a0ce2bac2f2b8eeff5e5c1ea467e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 19 Jun 2020 21:04:20 +0200 Subject: [PATCH] backend/noop: add missing rollback_render output impl 3c5dbfd97c77 ("output: make rollback_render mandatory") makes a no-op output init fail without this function. --- backend/noop/output.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/noop/output.c b/backend/noop/output.c index 15c84941..1302d3d6 100644 --- a/backend/noop/output.c +++ b/backend/noop/output.c @@ -17,6 +17,10 @@ static bool output_attach_render(struct wlr_output *wlr_output, return false; } +static void output_rollback_render(struct wlr_output *wlr_output) { + // This space is intentionally left blank +} + static bool output_commit(struct wlr_output *wlr_output) { if (wlr_output->pending.committed & WLR_OUTPUT_STATE_ENABLED) { wlr_log(WLR_DEBUG, "Cannot disable a noop output"); @@ -50,6 +54,7 @@ static void output_destroy(struct wlr_output *wlr_output) { static const struct wlr_output_impl output_impl = { .destroy = output_destroy, .attach_render = output_attach_render, + .rollback_render = output_rollback_render, .commit = output_commit, };