commands/focus: focus floating windows when moving across outputs

Moving focus directionally to an output containing only floating windows
would previously focus the workspace instead of the previously focused
floating window. This change falls back to the inactive focus, to match
the behaviour of workspace_switch().
This commit is contained in:
Scott Leggett 2026-06-23 01:21:24 +08:00 committed by Simon Ser
parent f3011841aa
commit 512d64b70f

View file

@ -132,7 +132,7 @@ static struct sway_node *get_node_in_output_direction(
return &container->node; return &container->node;
} }
return &ws->node; return seat_get_focus_inactive(seat, &ws->node);
} }
static struct sway_node *node_get_in_direction_tiling( static struct sway_node *node_get_in_direction_tiling(