diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-21 09:04:08 +0100 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2023-02-21 10:12:35 +0000 |
commit | bea6bee55d83398f1f3696c66fcaf3240751e4c5 (patch) | |
tree | 60fc05b1f9de220f9b7cd443b4abe53f004453f2 /backend/headless | |
parent | 8338d17d7e715a5ae945220e5d7e48abf4247e65 (diff) |
backend/headless: unconditionally accept all output layers
We don't need to do anything special to handle these.
Diffstat (limited to 'backend/headless')
-rw-r--r-- | backend/headless/output.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/headless/output.c b/backend/headless/output.c index 965314d2..b2be6a0d 100644 --- a/backend/headless/output.c +++ b/backend/headless/output.c @@ -2,6 +2,7 @@ #include <stdlib.h> #include <stdio.h> #include <wlr/interfaces/wlr_output.h> +#include <wlr/types/wlr_output_layer.h> #include <wlr/util/log.h> #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; } |