summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2019-01-09 09:54:16 +0100
committerLibravatar GitHub <noreply@github.com>2019-01-09 09:54:16 +0100
commit51bc466e2bc82a937fb4926849d734a069447a4a (patch)
tree97a2bb30bb4faded511c5aaa6b9d447bc57e2e13
parentMerge pull request #3387 from RedSoxFan/keyboard-timer-before-execute (diff)
parentcmd_swap: use handler context seat (diff)
downloadsway-51bc466e2bc82a937fb4926849d734a069447a4a.tar.gz
sway-51bc466e2bc82a937fb4926849d734a069447a4a.tar.zst
sway-51bc466e2bc82a937fb4926849d734a069447a4a.zip
Merge pull request #3389 from RedSoxFan/swap-context-seat
cmd_swap: use handler context seat
-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);