diff options
-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 bef1b88d..66f0be29 100644 --- a/sway/layout.c +++ b/sway/layout.c | |||
@@ -206,7 +206,8 @@ void swap_geometry(swayc_t *a, swayc_t *b) { | |||
206 | 206 | ||
207 | void move_container(swayc_t *container, enum movement_direction dir) { | 207 | void move_container(swayc_t *container, enum movement_direction dir) { |
208 | enum swayc_layouts layout; | 208 | enum swayc_layouts layout; |
209 | if (container->is_floating) { | 209 | if (container->is_floating |
210 | || (container->type != C_VIEW && container->type != C_CONTAINER)) { | ||
210 | return; | 211 | return; |
211 | } | 212 | } |
212 | if (dir == MOVE_UP || dir == MOVE_DOWN) { | 213 | if (dir == MOVE_UP || dir == MOVE_DOWN) { |