keybind: implement allowWhenLocked

fixes #2034

see bc258a3be2/sway/sway.5.scd (L409)
This commit is contained in:
Tobias Bengfort 2024-08-02 14:08:19 +02:00 committed by Consolatis
parent 6dd0d69889
commit 116382fd89
4 changed files with 21 additions and 16 deletions

View file

@ -407,6 +407,8 @@ fill_keybind(char *nodename, char *content)
set_bool(content, &current_keybind->on_release);
} else if (!strcasecmp(nodename, "layoutDependent")) {
set_bool(content, &current_keybind->use_syms_only);
} else if (!strcasecmp(nodename, "allowWhenLocked")) {
set_bool(content, &current_keybind->allow_when_locked);
} else if (!strcmp(nodename, "name.action")) {
current_keybind_action = action_create(content);
if (current_keybind_action) {