aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2020-08-23 13:59:22 +0200
committerFurkan Sahin <furkan-dev@proton.me>2020-08-23 13:59:22 +0200
commit83c6debff84bd9fa3584e8d14d3c6d612934185f (patch)
treea45ac5163ffa90fca8a3a03ef0b563f9829e4345 /include
parentba6f73ceab138723b874a037f76acf70c27ab36b (diff)
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;