From 9fd2d635a1f167daf0b0111e084d0e519fca0386 Mon Sep 17 00:00:00 2001 From: taiyu Date: Fri, 18 Sep 2015 11:34:57 -0700 Subject: container_move check --- sway/layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sway') diff --git a/sway/layout.c b/sway/layout.c index bef1b88d..66f0be29 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -206,7 +206,8 @@ 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) { + if (container->is_floating + || (container->type != C_VIEW && container->type != C_CONTAINER)) { return; } if (dir == MOVE_UP || dir == MOVE_DOWN) { -- cgit v1.2.3