From 1820b3f0bb97406aefb51ef44f2c60b4f4fa5165 Mon Sep 17 00:00:00 2001 From: taiyu <taiyu.len@gmail.com> Date: Fri, 28 Aug 2015 11:03:10 -0700 Subject: move function redone --- include/layout.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/layout.h b/include/layout.h index 2d2a1113..f462bdb3 100644 --- a/include/layout.h +++ b/include/layout.h @@ -37,10 +37,13 @@ swayc_t *replace_child(swayc_t *child, swayc_t *new_child); // a sibling, or to a floating window, or NULL swayc_t *remove_child(swayc_t *child); -// 2 containers are swapped, they inherit eachothers geometry and focus +// 2 containers are swapped, they inherit eachothers focus void swap_container(swayc_t *a, swayc_t *b); -void move_container(swayc_t* container,swayc_t* root,enum movement_direction direction); +// 2 Containers geometry are swapped, used with `swap_container` +void swap_geometry(swayc_t *a, swayc_t *b); + +void move_container(swayc_t* container, enum movement_direction direction); void move_container_to(swayc_t* container, swayc_t* destination); // Layout -- cgit v1.2.3