]> git.sur5r.net Git - i3/i3/blobdiff - src/move.c
Respect max size in WM_NORMAL_HINTS
[i3/i3] / src / move.c
index 5bff3dae5030bc844d915ac8a14d28c71b34876b..32178e6b2890837d46fdf9044bd5f1b2aab239e0 100644 (file)
@@ -265,7 +265,7 @@ void tree_move(Con *con, int direction) {
         return;
     }
 
-    orientation_t o = (direction == D_LEFT || direction == D_RIGHT ? HORIZ : VERT);
+    orientation_t o = orientation_from_direction(direction);
 
     Con *same_orientation = con_parent_with_orientation(con, o);
     /* The do {} while is used to 'restart' at this point with a different