diff options
author | taiyu <[email protected]> | 2015-08-27 23:18:28 -0700 |
---|---|---|
committer | taiyu <[email protected]> | 2015-08-27 23:18:28 -0700 |
commit | 5678d824e43d1ae2e2abaa1bc9a03391a4683a86 (patch) | |
tree | c097bfa46406f94903e942832e36bd3e96d343bb /sway/layout.c | |
parent | dfe0dda8d02a3cce27f3fa68e00293e32e90b6a7 (diff) |
update visibility + container info functions
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c index 5ade5e63..f04007ed 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -221,7 +221,7 @@ void move_container(swayc_t *container,swayc_t* root,enum movement_direction dir } void move_container_to(swayc_t* container, swayc_t* destination) { - if (container == destination) { + if (container == destination && swayc_is_parent_of(container, destination)) { return; } swayc_t *parent = remove_child(container); |