diff options
author | taiyu <[email protected]> | 2015-09-22 09:41:32 -0700 |
---|---|---|
committer | taiyu <[email protected]> | 2015-09-22 09:41:32 -0700 |
commit | 494499617090eccf73a0c75380ca884e77548a9f (patch) | |
tree | 46356ae7b43ce6a2ea133771784a072294918f78 /sway/layout.c | |
parent | 6c33f8122a3c4bb8fc22129d1d2ad03f535885f7 (diff) | |
parent | 72aaffcf5b96f7d20438191e17c1df7174e52e66 (diff) |
Merge branch 'master' of https://github.com/taiyu-len/sway
merge
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c index 086dc542..3cd873d6 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) { |