summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-08-28 07:41:36 -0400
committerDrew DeVault <[email protected]>2015-08-28 07:41:36 -0400
commit9751fff5c51ba9e4d046e3fd3df5dd3f07ab069b (patch)
treef24d9614b7d0be9163d0abe224f8aa283aff9238 /sway/layout.c
parent930d136196f12fc13380c68058c52d86107561cd (diff)
parent4757ea6a1212dab6ee82421a20b152d1f16e44fb (diff)
Merge pull request #145 from taiyu-len/master
use previous output containers
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c2
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);