mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
Merge branch 'output-layers-unmapped' into 'master'
output-layers: change semantics of wlr_output_state.layers See merge request wlroots/wlroots!4195
This commit is contained in:
commit
a860e5513e
8 changed files with 121 additions and 71 deletions
|
|
@ -684,12 +684,14 @@ static bool output_basic_test(struct wlr_output *output,
|
|||
}
|
||||
|
||||
if (state->committed & WLR_OUTPUT_STATE_LAYERS) {
|
||||
if (state->layers_len != (size_t)wl_list_length(&output->layers)) {
|
||||
wlr_log(WLR_DEBUG, "All output layers must be specified in wlr_output_state.layers");
|
||||
return false;
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < state->layers_len; i++) {
|
||||
assert(state->layers[i].layer != NULL);
|
||||
|
||||
if (state->layers[i].buffer == NULL) {
|
||||
wlr_log(WLR_DEBUG, "All output layer states must have a buffer");
|
||||
return false;
|
||||
}
|
||||
|
||||
state->layers[i].accepted = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue