diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-11-24 20:58:17 +0100 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-11-24 21:34:41 +0100 |
commit | e31a899841c88613235f319d5a852fe8a4d1711a (patch) | |
tree | 542662a0c6fdbcc82faae779de6082f31ea05468 /sway | |
parent | b5ddad4bf64c3541ab765c56f84a90842c2d4512 (diff) | |
download | sway-e31a899841c88613235f319d5a852fe8a4d1711a.tar.xz |
layout: get_swayc_in_direction_under: Handle floating views.
Diffstat (limited to 'sway')
-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 ac56f7b2..de186886 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -574,7 +574,7 @@ swayc_t *get_swayc_in_direction_under(swayc_t *container, enum movement_directio if (can_move) { int desired = index_child(container) + diff; - if (desired < 0 || desired >= parent->children->length) { + if (container->is_floating || desired < 0 || desired >= parent->children->length) { can_move = false; } else { return parent->children->items[desired]; |