aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Pospelov <kupospelov@gmail.com>2020-08-23 13:59:22 +0200
committerSimon Ser <contact@emersion.fr>2020-08-24 09:41:54 +0200
commitfd216b3a81129f15036755bc6f383c7c261291a5 (patch)
treea45ac5163ffa90fca8a3a03ef0b563f9829e4345 /include
parent6991ac8c70869ca19a87cfc173e280cab7ff20d0 (diff)
downloadsway-fd216b3a81129f15036755bc6f383c7c261291a5.tar.xz
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,
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;