diff --git a/layout.c b/layout.c index 11c292bba..f020ef8ba 100644 --- a/layout.c +++ b/layout.c @@ -1730,7 +1730,7 @@ layout_floating_args_parse(struct cmdq_item *item, struct args *args, ox = 4; } w->last_new_pane_x = ox; - } else + } else if (args_has(args, 'X')) if (lines != PANE_LINES_NONE) ox += 1; if (oy == INT_MAX) { @@ -1742,7 +1742,7 @@ layout_floating_args_parse(struct cmdq_item *item, struct args *args, oy = 2; } w->last_new_pane_y = oy; - } else + } else if (args_has(args, 'Y')) if (lines != PANE_LINES_NONE) oy += 1;