From 8a1cc0a2a992bedc6b9ba11d859f89f065d3d208 Mon Sep 17 00:00:00 2001 From: Michael Grant Date: Wed, 3 Jun 2026 12:49:59 +0100 Subject: [PATCH] Allow new floating panes to be created off left side of window. --- layout.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layout.c b/layout.c index 5cdb4134..00bb52d4 100644 --- a/layout.c +++ b/layout.c @@ -1302,8 +1302,8 @@ layout_get_floating_cell(struct cmdq_item *item, struct args *args, struct window *w, __unused struct window_pane *wp, struct layout_cell *lc, char **cause) { - u_int sx, sy, ox, oy; - int new = 0; + u_int sx, sy; + int ox, oy, new = 0; if (lc == NULL) { lc = layout_create_cell(NULL); @@ -1326,14 +1326,14 @@ layout_get_floating_cell(struct cmdq_item *item, struct args *args, goto error; } if (args_has(args, 'X')) { - ox = args_percentage_and_expand(args, 'X', 0, USHRT_MAX, w->sx, - item, cause); + ox = args_percentage_and_expand(args, 'X', -USHRT_MAX, USHRT_MAX, + w->sx, item, cause); if (*cause != NULL) goto error; } if (args_has(args, 'Y')) { - oy = args_percentage_and_expand(args, 'Y', 0, USHRT_MAX, w->sy, - item, cause); + oy = args_percentage_and_expand(args, 'Y', -USHRT_MAX, USHRT_MAX, + w->sy, item, cause); if (*cause != NULL) goto error; }