summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-11-24 20:58:17 +0100
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-11-24 21:34:41 +0100
commite31a899841c88613235f319d5a852fe8a4d1711a (patch)
tree542662a0c6fdbcc82faae779de6082f31ea05468 /sway
parentlayout: swap_container: Handle floating views. (diff)
downloadsway-e31a899841c88613235f319d5a852fe8a4d1711a.tar.gz
sway-e31a899841c88613235f319d5a852fe8a4d1711a.tar.zst
sway-e31a899841c88613235f319d5a852fe8a4d1711a.zip
layout: get_swayc_in_direction_under: Handle floating views.
Diffstat (limited to 'sway')
-rw-r--r--sway/layout.c2
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
574 574
575 if (can_move) { 575 if (can_move) {
576 int desired = index_child(container) + diff; 576 int desired = index_child(container) + diff;
577 if (desired < 0 || desired >= parent->children->length) { 577 if (container->is_floating || desired < 0 || desired >= parent->children->length) {
578 can_move = false; 578 can_move = false;
579 } else { 579 } else {
580 return parent->children->items[desired]; 580 return parent->children->items[desired];