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

@ -18,6 +18,7 @@ struct keybind {
xkb_keycode_t keycodes[MAX_KEYCODES];
size_t keycodes_len;
int keycodes_layout;
bool allow_when_locked;
struct wl_list actions; /* struct action.link */
struct wl_list link; /* struct rcxml.keybinds */
bool on_release;