From bea6bee55d83398f1f3696c66fcaf3240751e4c5 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 21 Feb 2023 09:04:08 +0100 Subject: [PATCH] backend/headless: unconditionally accept all output layers We don't need to do anything special to handle these. --- backend/headless/output.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/headless/output.c b/backend/headless/output.c index 965314d2a..b2be6a0d0 100644 --- a/backend/headless/output.c +++ b/backend/headless/output.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include "backend/headless.h" @@ -43,6 +44,12 @@ static bool output_test(struct wlr_output *wlr_output, assert(state->mode_type == WLR_OUTPUT_STATE_MODE_CUSTOM); } + if (state->committed & WLR_OUTPUT_STATE_LAYERS) { + for (size_t i = 0; i < state->layers_len; i++) { + state->layers[i].accepted = true; + } + } + return true; }