diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-09 22:25:21 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-09 22:25:21 +1000 |
commit | 61699a11463d5a1168358ba5f7fece6401ab0654 (patch) | |
tree | 3f597e3a0534927e532597a6e2b5ddc59d1c0cfd /include/sway | |
parent | e143c9613d350b74e02c5ac3c9a055ab26fc9588 (diff) | |
download | sway-61699a11463d5a1168358ba5f7fece6401ab0654.tar.xz |
resize: Determine if anything changed using before/after check
Returning a boolean from container_resize_tiled and resize_tiled doesn't
work in all cases. This patch changes it back to void and does a
before/after check to see if the container was resized.
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/commands.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 48228a98..ab2da1a9 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h @@ -95,7 +95,7 @@ struct cmd_results *add_color(const char *name, /** * TODO: Move this function and its dependent functions to container.c. */ -bool container_resize_tiled(struct sway_container *parent, enum wlr_edges edge, +void container_resize_tiled(struct sway_container *parent, enum wlr_edges edge, int amount); sway_cmd cmd_assign; |