aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/commands.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-09 22:25:21 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-09 22:25:21 +1000
commit61699a11463d5a1168358ba5f7fece6401ab0654 (patch)
tree3f597e3a0534927e532597a6e2b5ddc59d1c0cfd /include/sway/commands.h
parentMerge pull request #2804 from Emantor/swaynag-double-free (diff)
downloadsway-61699a11463d5a1168358ba5f7fece6401ab0654.tar.gz
sway-61699a11463d5a1168358ba5f7fece6401ab0654.tar.zst
sway-61699a11463d5a1168358ba5f7fece6401ab0654.zip
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/commands.h')
-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,
95/** 95/**
96 * TODO: Move this function and its dependent functions to container.c. 96 * TODO: Move this function and its dependent functions to container.c.
97 */ 97 */
98bool container_resize_tiled(struct sway_container *parent, enum wlr_edges edge, 98void container_resize_tiled(struct sway_container *parent, enum wlr_edges edge,
99 int amount); 99 int amount);
100 100
101sway_cmd cmd_assign; 101sway_cmd cmd_assign;