mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
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:
parent
e143c9613d
commit
61699a1146
2 changed files with 15 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue