aboutsummaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authortaiyu <taiyu.len@gmail.com>2015-09-18 11:34:57 -0700
committertaiyu <taiyu.len@gmail.com>2015-09-18 11:34:57 -0700
commit9fd2d635a1f167daf0b0111e084d0e519fca0386 (patch)
tree57872b5eab5b11475bf819076c8f7dc1bbd81cca /sway/layout.c
parent7672886cb5927977617d274ebaec4a3840df0a5d (diff)
container_move check
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c3
1 files changed, 2 insertions, 1 deletions
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) {