From 02690694d8cf5b7a75c10dd8667b97ef9aeddc24 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 17 Jan 2026 16:33:09 +0800 Subject: [PATCH] fix: fix drag to resize --- src/dispatch/bind_define.h | 7 +------ src/layout/arrange.h | 3 +++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/dispatch/bind_define.h b/src/dispatch/bind_define.h index 9694d9b..69fbc90 100644 --- a/src/dispatch/bind_define.h +++ b/src/dispatch/bind_define.h @@ -426,11 +426,6 @@ 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)) { - target_client = get_scroll_stack_head(target_client); - } switch (arg->ui) { case NUM_TYPE_MINUS: offsetx = -arg->i; @@ -454,7 +449,7 @@ int32_t resizewin(const Arg *arg) { offsety = arg->i2; break; } - resize_tile_client(target_client, false, offsetx, offsety, 0); + resize_tile_client(c, false, offsetx, offsety, 0); return 0; } diff --git a/src/layout/arrange.h b/src/layout/arrange.h index 072993d..a7be06a 100644 --- a/src/layout/arrange.h +++ b/src/layout/arrange.h @@ -464,6 +464,9 @@ void resize_tile_scroller(Client *grabc, bool isdrag, int32_t offsetx, fmaxf(0.1f, fminf(1.0f, new_scroller_proportion)); grabc->scroller_proportion = new_scroller_proportion; + if(grabc->prev_in_stack) { + grabc->prev_in_stack->scroller_proportion = grabc->scroller_proportion; + } if (!isdrag) { arrange(grabc->mon, false, false);