From 512d64b70fac64a55ba16222a2a8ca1fe5ce42ba Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Tue, 23 Jun 2026 01:21:24 +0800 Subject: [PATCH] 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(). --- sway/commands/focus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/focus.c b/sway/commands/focus.c index 2a4f5d0e9..8ae75f229 100644 --- a/sway/commands/focus.c +++ b/sway/commands/focus.c @@ -132,7 +132,7 @@ static struct sway_node *get_node_in_output_direction( return &container->node; } - return &ws->node; + return seat_get_focus_inactive(seat, &ws->node); } static struct sway_node *node_get_in_direction_tiling(