From e31a899841c88613235f319d5a852fe8a4d1711a Mon Sep 17 00:00:00 2001 From: "S. Christoffer Eliesen" Date: Tue, 24 Nov 2015 20:58:17 +0100 Subject: [PATCH] layout: get_swayc_in_direction_under: Handle floating views. --- sway/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/layout.c b/sway/layout.c index ac56f7b20..de186886f 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];