diff options
author | Konstantin Pospelov <kupospelov@gmail.com> | 2020-08-23 13:59:22 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-08-24 09:41:54 +0200 |
commit | fd216b3a81129f15036755bc6f383c7c261291a5 (patch) | |
tree | a45ac5163ffa90fca8a3a03ef0b563f9829e4345 /include | |
parent | Handle SIGINT (diff) | |
download | sway-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.h | 6 |
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, | |||
97 | struct sway_container *container_find_resize_parent(struct sway_container *con, | 97 | struct 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 | */ | ||
103 | sway_cmd cmd_exec_validate; | ||
104 | sway_cmd cmd_exec_process; | ||
105 | |||
100 | sway_cmd cmd_assign; | 106 | sway_cmd cmd_assign; |
101 | sway_cmd cmd_bar; | 107 | sway_cmd cmd_bar; |
102 | sway_cmd cmd_bindcode; | 108 | sway_cmd cmd_bindcode; |