container: use the current seat in container_split

This commit is contained in:
Ronan Pigott 2021-01-13 11:02:33 -07:00
parent 1ad4632ab0
commit fd36bf2475

View file

@ -1423,7 +1423,7 @@ struct sway_container *container_split(struct sway_container *child,
}
}
struct sway_seat *seat = input_manager_get_default_seat();
struct sway_seat *seat = input_manager_current_seat();
bool set_focus = (seat_get_focus(seat) == &child->node);
if (container_is_floating(child) && child->view) {