aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/swap.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-01-09 01:37:46 -0500
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-01-09 01:37:46 -0500
commitc4122e3975a7af609af53de8ec3a9f473247d16c (patch)
tree8bcb70f38e2d0559f21c5cef1eec828d220ab75c /sway/commands/swap.c
parentMerge pull request #3385 from robertgzr/reset_output_mapping (diff)
downloadsway-c4122e3975a7af609af53de8ec3a9f473247d16c.tar.gz
sway-c4122e3975a7af609af53de8ec3a9f473247d16c.tar.zst
sway-c4122e3975a7af609af53de8ec3a9f473247d16c.zip
cmd_swap: use handler context seat
Use the handler context seat instead of the default seat
Diffstat (limited to 'sway/commands/swap.c')
-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,
108 container_set_fullscreen(con2, false); 108 container_set_fullscreen(con2, false);
109 } 109 }
110 110
111 struct sway_seat *seat = input_manager_get_default_seat(); 111 struct sway_seat *seat = config->handler_context.seat;
112 struct sway_container *focus = seat_get_focused_container(seat); 112 struct sway_container *focus = seat_get_focused_container(seat);
113 struct sway_workspace *vis1 = 113 struct sway_workspace *vis1 =
114 output_get_active_workspace(con1->workspace->output); 114 output_get_active_workspace(con1->workspace->output);