mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
fix: tagmon miss scan window size
This commit is contained in:
parent
a497205d33
commit
4e689736e6
1 changed files with 4 additions and 4 deletions
8
maomao.c
8
maomao.c
|
|
@ -5432,14 +5432,14 @@ void tagmon(const Arg *arg) {
|
||||||
if (c) {
|
if (c) {
|
||||||
setmon(c, dirtomon(arg->i), 0);
|
setmon(c, dirtomon(arg->i), 0);
|
||||||
reset_foreign_tolevel(c);
|
reset_foreign_tolevel(c);
|
||||||
selmon = c->mon;
|
c->geom.width = (int)(c->geom.width * c->mon->w.width / selmon->w.width);
|
||||||
c->geom.width = (int)(c->geom.width * selmon->m.width / c->mon->m.width);
|
|
||||||
c->geom.height =
|
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) {
|
if (c->isfloating) {
|
||||||
c->geom = setclient_coordinate_center(c->geom);
|
c->geom = setclient_coordinate_center(c->geom);
|
||||||
resize(c, c->geom, 0);
|
resize(c, c->geom, 1);
|
||||||
}
|
}
|
||||||
warp_cursor_to_selmon(c->mon);
|
warp_cursor_to_selmon(c->mon);
|
||||||
focusclient(c, 1);
|
focusclient(c, 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue