mirror of
https://github.com/swaywm/sway.git
synced 2025-01-01 18:06:47 +01:00
layout: get_swayc_in_direction_under: Handle floating views.
This commit is contained in:
parent
b5ddad4bf6
commit
e31a899841
1 changed files with 1 additions and 1 deletions
|
@ -574,7 +574,7 @@ swayc_t *get_swayc_in_direction_under(swayc_t *container, enum movement_directio
|
||||||
|
|
||||||
if (can_move) {
|
if (can_move) {
|
||||||
int desired = index_child(container) + diff;
|
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;
|
can_move = false;
|
||||||
} else {
|
} else {
|
||||||
return parent->children->items[desired];
|
return parent->children->items[desired];
|
||||||
|
|
Loading…
Reference in a new issue