aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-10-09 22:25:21 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-10-09 22:25:21 +1000
commit61699a11463d5a1168358ba5f7fece6401ab0654 (patch)
tree3f597e3a0534927e532597a6e2b5ddc59d1c0cfd /include/sway
parente143c9613d350b74e02c5ac3c9a055ab26fc9588 (diff)
downloadsway-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.h2
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;