config: layer: add 'overlay' and 'background'

The layer option (Wayland only) now accepts 'overlay' and
'background'.

Closes #372
This commit is contained in:
Daniel Eklöf 2024-04-06 15:39:19 +02:00
parent 28a18ad91e
commit d841aeeecd
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 34 additions and 7 deletions

View file

@ -453,7 +453,9 @@ verify_bar_location(keychain_t *chain, const struct yml_node *node)
static bool
verify_bar_layer(keychain_t *chain, const struct yml_node *node)
{
return conf_verify_enum(chain, node, (const char *[]){"top", "bottom"}, 2);
return conf_verify_enum(
chain, node,
(const char *[]){"overlay", "top", "bottom", "background"}, 4);
}
bool