mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
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:
parent
0743b21cc8
commit
a78a5684ea
4 changed files with 52 additions and 31 deletions
|
|
@ -28,6 +28,7 @@ struct sway_variable {
|
|||
struct sway_binding {
|
||||
int order;
|
||||
bool release;
|
||||
bool locked;
|
||||
bool bindcode;
|
||||
list_t *keys;
|
||||
uint32_t modifiers;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue