diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-29 06:51:37 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-29 06:51:37 -0700 |
commit | 79da7f112a5cd228ab45af3c1ef7f4f67bff936d (patch) | |
tree | 7b1a45d2a2a3b286f70364dad6023106f5c35697 /sway | |
parent | 6b962ebd22767a6c3fa9317ef1fdc814d195854a (diff) |
#151 fix
Diffstat (limited to 'sway')
-rw-r--r-- | sway/layout.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/layout.c b/sway/layout.c index 875115e7..daef332a 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -204,9 +204,6 @@ void swap_geometry(swayc_t *a, swayc_t *b) { b->height = h; } -// TODO fix workspace movement, as in -// [a][b][c] => |move b| => [aa][cc] -// [a][b][c] => |down | => [bbbbbb] void move_container(swayc_t *container, enum movement_direction dir) { enum swayc_layouts layout; if (container->is_floating) { @@ -288,7 +285,7 @@ void move_container(swayc_t *container, enum movement_direction dir) { } void move_container_to(swayc_t* container, swayc_t* destination) { - if (container == destination && swayc_is_parent_of(container, destination)) { + if (container == destination || swayc_is_parent_of(container, destination)) { return; } swayc_t *parent = remove_child(container); |