mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
output: assert that wlr_output_layer_state.layer is populated
Leaving this NULL is a compositor bug.
This commit is contained in:
parent
ba7ac3efe5
commit
f42920c414
1 changed files with 1 additions and 0 deletions
|
|
@ -670,6 +670,7 @@ static bool output_basic_test(struct wlr_output *output,
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = 0; i < state->layers_len; i++) {
|
for (size_t i = 0; i < state->layers_len; i++) {
|
||||||
|
assert(state->layers[i].layer != NULL);
|
||||||
state->layers[i].accepted = false;
|
state->layers[i].accepted = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue