update visibility + container info functions

This commit is contained in:
taiyu 2015-08-27 23:18:28 -07:00
parent dfe0dda8d0
commit 5678d824e4
4 changed files with 77 additions and 53 deletions

View file

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