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.
This commit is contained in:
Ryan Dwyer 2018-10-09 22:25:21 +10:00
parent e143c9613d
commit 61699a1146
2 changed files with 15 additions and 13 deletions

View file

@ -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;