From 7b11593c156bd1d5aa4058a41b921a9e35972788 Mon Sep 17 00:00:00 2001 From: nixpup Date: Fri, 16 Jan 2026 23:12:24 +0100 Subject: [PATCH] Allowed resizing vertical stack from any selected window. --- src/dispatch/bind_define.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/dispatch/bind_define.h b/src/dispatch/bind_define.h index 21cdfea..e50d63c 100644 --- a/src/dispatch/bind_define.h +++ b/src/dispatch/bind_define.h @@ -426,6 +426,12 @@ int32_t resizewin(const Arg *arg) { return 0; if (ISTILED(c)) { + Client *target_client = c; + if (is_scroller_layout(c->mon) && (c->prev_in_stack || c->next_in_stack)) { + while (target_client->prev_in_stack) { + target_client = target_client->prev_in_stack; + } + } switch (arg->ui) { case NUM_TYPE_MINUS: offsetx = -arg->i; @@ -449,7 +455,7 @@ int32_t resizewin(const Arg *arg) { offsety = arg->i2; break; } - resize_tile_client(c, false, offsetx, offsety, 0); + resize_tile_client(target_client, false, offsetx, offsety, 0); return 0; }