summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authortaiyu <[email protected]>2015-09-22 09:41:32 -0700
committertaiyu <[email protected]>2015-09-22 09:41:32 -0700
commit494499617090eccf73a0c75380ca884e77548a9f (patch)
tree46356ae7b43ce6a2ea133771784a072294918f78 /sway/layout.c
parent6c33f8122a3c4bb8fc22129d1d2ad03f535885f7 (diff)
parent72aaffcf5b96f7d20438191e17c1df7174e52e66 (diff)
Merge branch 'master' of https://github.com/taiyu-len/sway
merge
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 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) {