aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Konstantin Pospelov <kupospelov@gmail.com>2020-08-23 13:59:22 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2020-08-24 09:41:54 +0200
commitfd216b3a81129f15036755bc6f383c7c261291a5 (patch)
treea45ac5163ffa90fca8a3a03ef0b563f9829e4345 /include
parentHandle SIGINT (diff)
downloadsway-fd216b3a81129f15036755bc6f383c7c261291a5.tar.gz
sway-fd216b3a81129f15036755bc6f383c7c261291a5.tar.zst
sway-fd216b3a81129f15036755bc6f383c7c261291a5.zip
exec: fix validation during config reload
Split cmd_exec_always into separate methods for general validation and process creation. This fixes a potential call of join_args with 0 arguments.
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 4a2f8c20..07730f98 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -97,6 +97,12 @@ void container_resize_tiled(struct sway_container *parent, uint32_t axis,
97struct sway_container *container_find_resize_parent(struct sway_container *con, 97struct sway_container *container_find_resize_parent(struct sway_container *con,
98 uint32_t edge); 98 uint32_t edge);
99 99
100/**
101 * Handlers shared by exec and exec_always.
102 */
103sway_cmd cmd_exec_validate;
104sway_cmd cmd_exec_process;
105
100sway_cmd cmd_assign; 106sway_cmd cmd_assign;
101sway_cmd cmd_bar; 107sway_cmd cmd_bar;
102sway_cmd cmd_bindcode; 108sway_cmd cmd_bindcode;