aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-01-09 09:54:16 +0100
committerGitHub <noreply@github.com>2019-01-09 09:54:16 +0100
commit51bc466e2bc82a937fb4926849d734a069447a4a (patch)
tree97a2bb30bb4faded511c5aaa6b9d447bc57e2e13 /sway
parentff62425480ea35a5b4626ea43dbf064478d4e2fa (diff)
parentc4122e3975a7af609af53de8ec3a9f473247d16c (diff)
Merge pull request #3389 from RedSoxFan/swap-context-seat
cmd_swap: use handler context seat
Diffstat (limited to 'sway')
-rw-r--r--sway/commands/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/swap.c b/sway/commands/swap.c
index 08860264..670d6bca 100644
--- 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);