From 076cf78d7cde486eaca9a2c05a6a4438ff07014e Mon Sep 17 00:00:00 2001 From: taiyu Date: Fri, 28 Aug 2015 11:04:58 -0700 Subject: [PATCH] dont move floating contaienrs --- sway/layout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sway/layout.c b/sway/layout.c index 6e64257b..74efc56c 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -198,6 +198,9 @@ void swap_geometry(swayc_t *a, swayc_t *b) { // void move_container(swayc_t *container, enum movement_direction dir) { enum swayc_layouts layout; + if (container->is_floating) { + return; + } if (dir == MOVE_UP || dir == MOVE_DOWN) { layout = L_VERT; } else if (dir == MOVE_LEFT || dir == MOVE_RIGHT) {