aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorS. Christoffer Eliesen <christoffer@eliesen.no>2015-11-24 20:58:17 +0100
committerS. Christoffer Eliesen <christoffer@eliesen.no>2015-11-24 21:34:41 +0100
commite31a899841c88613235f319d5a852fe8a4d1711a (patch)
tree542662a0c6fdbcc82faae779de6082f31ea05468 /sway
parentb5ddad4bf64c3541ab765c56f84a90842c2d4512 (diff)
downloadsway-e31a899841c88613235f319d5a852fe8a4d1711a.tar.xz
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
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];