Implement bindsym/bindcode --locked

Adds the --locked flag to bindsym and bindcode commands.

When a keyboard's associated seat has an exclusive client
(i.e, a screenlocker), then bindings are only executed if
they have the locked flag. When there is no such client,
this restriction is lifted.
This commit is contained in:
frsfnrrg 2018-05-27 12:37:18 -04:00
parent 0743b21cc8
commit a78a5684ea
4 changed files with 52 additions and 31 deletions

View file

@ -28,6 +28,7 @@ struct sway_variable {
struct sway_binding {
int order;
bool release;
bool locked;
bool bindcode;
list_t *keys;
uint32_t modifiers;