fix: fix drag to resize

This commit is contained in:
DreamMaoMao 2026-01-17 16:33:09 +08:00
parent 8a769eaf03
commit 02690694d8
2 changed files with 4 additions and 6 deletions

View file

@ -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;
}

View file

@ -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);