aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/swap.c
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2019-07-08 22:29:04 +0200
committerBrian Ashworth <bosrsf04@gmail.com>2019-07-09 02:56:55 -0400
commit538b36c0e2f9f0bf64ef473789e2598ac7d1629f (patch)
tree1014b90ce73873ed0a4a1cf0e2d5c4612a1c691d /sway/commands/swap.c
parentc9cb5ced7f7597afeb73fd5b661a98462f170d11 (diff)
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.
Diffstat (limited to 'sway/commands/swap.c')
-rw-r--r--sway/commands/swap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/commands/swap.c b/sway/commands/swap.c
index b978af16..f27aa7ed 100644
--- a/sway/commands/swap.c
+++ b/sway/commands/swap.c
@@ -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;
}