commit 51bc466e2bc82a937fb4926849d734a069447a4a
parent ff62425480ea35a5b4626ea43dbf064478d4e2fa
Author: emersion <contact@emersion.fr>
Date: Wed, 9 Jan 2019 09:54:16 +0100
Merge pull request #3389 from RedSoxFan/swap-context-seat
cmd_swap: use handler context seat
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/commands/swap.c b/sway/commands/swap.c
@@ -108,7 +108,7 @@ static void container_swap(struct sway_container *con1,
container_set_fullscreen(con2, false);
}
- struct sway_seat *seat = input_manager_get_default_seat();
+ struct sway_seat *seat = config->handler_context.seat;
struct sway_container *focus = seat_get_focused_container(seat);
struct sway_workspace *vis1 =
output_get_active_workspace(con1->workspace->output);