From ee2e21e20b4721fea2da3beb343fb99222fcd478 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 9 May 2026 13:58:46 +0800 Subject: [PATCH] opt: clear useless arg --- src/layout/arrange.h | 2 +- src/layout/dwindle.h | 3 +-- src/mango.c | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/layout/arrange.h b/src/layout/arrange.h index d9731acc..9e0c6fa7 100644 --- a/src/layout/arrange.h +++ b/src/layout/arrange.h @@ -498,7 +498,7 @@ void resize_tile_dwindle(Client *grabc, bool isdrag, int32_t offsetx, if (last_apply_drap_time == 0 || time - last_apply_drap_time > config.drag_tile_refresh_interval) { - dwindle_resize_client(grabc->mon, grabc, offsetx, offsety); + dwindle_resize_client(grabc->mon, grabc); last_apply_drap_time = time; } } diff --git a/src/layout/dwindle.h b/src/layout/dwindle.h index 40dd2b2e..659105fe 100644 --- a/src/layout/dwindle.h +++ b/src/layout/dwindle.h @@ -176,8 +176,7 @@ static void dwindle_swap_clients(DwindleNode **root, Client *a, Client *b) { lb->client = a; } -static void dwindle_resize_client(Monitor *m, Client *c, int32_t dx, - int32_t dy) { +static void dwindle_resize_client(Monitor *m, Client *c) { uint32_t tag = m->pertag->curtag; DwindleNode *leaf = dwindle_find_leaf(m->pertag->dwindle_root[tag], c); if (!leaf) diff --git a/src/mango.c b/src/mango.c index 9b5904cc..fbc139f1 100644 --- a/src/mango.c +++ b/src/mango.c @@ -821,8 +821,7 @@ static void dwindle_move_client(DwindleNode **root, Client *c, Client *target, float ratio, int32_t dir); static void dwindle_resize_client_step(Monitor *m, Client *c, int32_t dx, int32_t dy); -static void dwindle_resize_client(Monitor *m, Client *c, int32_t dx, - int32_t dy); +static void dwindle_resize_client(Monitor *m, Client *c); #include "data/static_keymap.h" #include "dispatch/bind_declare.h"