From 538b36c0e2f9f0bf64ef473789e2598ac7d1629f Mon Sep 17 00:00:00 2001
From: Sebastian Parborg <darkdefende@gmail.com>
Date: Mon, 8 Jul 2019 22:29:04 +0200
Subject: 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.
---
 sway/commands/swap.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'sway/commands')

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;
 	}
-- 
cgit v1.2.3