aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/mode.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-03-19 23:07:32 -0400
committerLibravatar emersion <contact@emersion.fr>2019-03-23 08:07:25 +0200
commit8cd7f0171ad8ffc4ce490f6f4b18522cb178c951 (patch)
tree16ee638f5222905b3a7911e77e33c24827ba9944 /sway/commands/mode.c
parentSupport focus <direction> for floating containers (diff)
downloadsway-8cd7f0171ad8ffc4ce490f6f4b18522cb178c951.tar.gz
sway-8cd7f0171ad8ffc4ce490f6f4b18522cb178c951.tar.zst
sway-8cd7f0171ad8ffc4ce490f6f4b18522cb178c951.zip
cmd_mode: allow cmd_set to be a subcommand
This allows set to be used in mode blocks
Diffstat (limited to 'sway/commands/mode.c')
-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 @@
13static struct cmd_handler mode_handlers[] = { 13static struct cmd_handler mode_handlers[] = {
14 { "bindcode", cmd_bindcode }, 14 { "bindcode", cmd_bindcode },
15 { "bindswitch", cmd_bindswitch }, 15 { "bindswitch", cmd_bindswitch },
16 { "bindsym", cmd_bindsym } 16 { "bindsym", cmd_bindsym },
17 { "set", cmd_set },
17}; 18};
18 19
19struct cmd_results *cmd_mode(int argc, char **argv) { 20struct cmd_results *cmd_mode(int argc, char **argv) {