Make mouse drag in tiled mode swap containers if no edge is selected

Now the highlighted center area of containers triggers a swap action
instead of moving around the containers.
This commit is contained in:
Sebastian Parborg 2019-07-08 22:29:04 +02:00 committed by Brian Ashworth
parent c9cb5ced7f
commit 538b36c0e2
3 changed files with 18 additions and 9 deletions

View file

@ -84,8 +84,7 @@ static void swap_focus(struct sway_container *con1,
}
}
static void container_swap(struct sway_container *con1,
struct sway_container *con2) {
void container_swap(struct sway_container *con1, struct sway_container *con2) {
if (!sway_assert(con1 && con2, "Cannot swap with nothing")) {
return;
}