aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-03-19 23:07:32 -0400
committeremersion <contact@emersion.fr>2019-03-23 08:07:25 +0200
commit8cd7f0171ad8ffc4ce490f6f4b18522cb178c951 (patch)
tree16ee638f5222905b3a7911e77e33c24827ba9944 /sway/commands
parentcdcc2a5bb52a34865eee2ec3d09a38b047c08ffd (diff)
downloadsway-8cd7f0171ad8ffc4ce490f6f4b18522cb178c951.tar.xz
cmd_mode: allow cmd_set to be a subcommand
This allows set to be used in mode blocks
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/mode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands/mode.c b/sway/commands/mode.c
index 3e0ee80c..ef2c5d79 100644
--- a/sway/commands/mode.c
+++ b/sway/commands/mode.c
@@ -13,7 +13,8 @@
static struct cmd_handler mode_handlers[] = {
{ "bindcode", cmd_bindcode },
{ "bindswitch", cmd_bindswitch },
- { "bindsym", cmd_bindsym }
+ { "bindsym", cmd_bindsym },
+ { "set", cmd_set },
};
struct cmd_results *cmd_mode(int argc, char **argv) {