mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -05:00
update visibility + container info functions
This commit is contained in:
parent
dfe0dda8d0
commit
5678d824e4
4 changed files with 77 additions and 53 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue