From 73ebdb0fddd55acb6f270cc6e3117a94ca51a64d Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 25 Mar 2025 12:12:36 +0800 Subject: [PATCH] fix: tagmon miss scan window size --- maomao.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maomao.c b/maomao.c index 932579be..d924b2c9 100644 --- a/maomao.c +++ b/maomao.c @@ -5442,14 +5442,14 @@ void tagmon(const Arg *arg) { if (c) { setmon(c, dirtomon(arg->i), 0); reset_foreign_tolevel(c); - selmon = c->mon; - c->geom.width = (int)(c->geom.width * selmon->m.width / c->mon->m.width); + c->geom.width = (int)(c->geom.width * c->mon->w.width / selmon->w.width); c->geom.height = - (int)(c->geom.height * selmon->m.height / c->mon->m.height); + (int)(c->geom.height * c->mon->w.height / selmon->w.height); + selmon = c->mon; // 重新计算居中的坐标 if (c->isfloating) { c->geom = setclient_coordinate_center(c->geom); - resize(c, c->geom, 0); + resize(c, c->geom, 1); } warp_cursor_to_selmon(c->mon); focusclient(c, 1);