mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 08:26:45 +01:00
cmd_swap: use handler context seat
Use the handler context seat instead of the default seat
This commit is contained in:
parent
da8f24de1d
commit
c4122e3975
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ static void container_swap(struct sway_container *con1,
|
||||||
container_set_fullscreen(con2, false);
|
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_container *focus = seat_get_focused_container(seat);
|
||||||
struct sway_workspace *vis1 =
|
struct sway_workspace *vis1 =
|
||||||
output_get_active_workspace(con1->workspace->output);
|
output_get_active_workspace(con1->workspace->output);
|
||||||
|
|
Loading…
Reference in a new issue