summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar frsfnrrg <frsfnrrg@users.noreply.github.com>2018-05-27 12:37:18 -0400
committerLibravatar frsfnrrg <frsfnrrg@users.noreply.github.com>2018-05-27 13:28:02 -0400
commita78a5684ea8a19e54d797ab6cddd2f81f88360a5 (patch)
tree8870a8acc8d92d10d64e9d3d9bfdd28dedb6eea7 /include
parentMerge pull request #2052 from emersion/output-destroy-empty-workspace (diff)
downloadsway-a78a5684ea8a19e54d797ab6cddd2f81f88360a5.tar.gz
sway-a78a5684ea8a19e54d797ab6cddd2f81f88360a5.tar.zst
sway-a78a5684ea8a19e54d797ab6cddd2f81f88360a5.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 33f52156..118981e3 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -28,6 +28,7 @@ struct sway_variable {
28struct sway_binding { 28struct sway_binding {
29 int order; 29 int order;
30 bool release; 30 bool release;
31 bool locked;
31 bool bindcode; 32 bool bindcode;
32 list_t *keys; 33 list_t *keys;
33 uint32_t modifiers; 34 uint32_t modifiers;