From 538b36c0e2f9f0bf64ef473789e2598ac7d1629f Mon Sep 17 00:00:00 2001 From: Sebastian Parborg 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. --- include/sway/tree/container.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 8448d705..adeb85ae 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h @@ -326,6 +326,8 @@ void container_detach(struct sway_container *child); void container_replace(struct sway_container *container, struct sway_container *replacement); +void container_swap(struct sway_container *con1, struct sway_container *con2); + struct sway_container *container_split(struct sway_container *child, enum sway_container_layout layout); -- cgit v1.2.3