From fd216b3a81129f15036755bc6f383c7c261291a5 Mon Sep 17 00:00:00 2001 From: Konstantin Pospelov Date: Sun, 23 Aug 2020 13:59:22 +0200 Subject: 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. --- include/sway/commands.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/sway/commands.h') 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, struct sway_container *container_find_resize_parent(struct sway_container *con, uint32_t edge); +/** + * Handlers shared by exec and exec_always. + */ +sway_cmd cmd_exec_validate; +sway_cmd cmd_exec_process; + sway_cmd cmd_assign; sway_cmd cmd_bar; sway_cmd cmd_bindcode; -- cgit v1.2.3-54-g00ecf