mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
fix: fix resizewin some error
This commit is contained in:
parent
aff3b58010
commit
3e9a01eb8a
1 changed files with 2 additions and 2 deletions
4
maomao.c
4
maomao.c
|
|
@ -7070,7 +7070,7 @@ void resizewin(const Arg *arg) {
|
|||
continue;
|
||||
top = tc->geom.y - gappiv;
|
||||
if (buttom < top && (nh + c->geom.y) > top) {
|
||||
tar = MIN(tar, top - c->geom.y);
|
||||
tar = MAX(tar, top - c->geom.y);
|
||||
};
|
||||
}
|
||||
nh = tar == -99999 ? nh : tar;
|
||||
|
|
@ -7081,7 +7081,7 @@ void resizewin(const Arg *arg) {
|
|||
nw -= selmon->w.width / 16;
|
||||
nw = MAX(nw, selmon->w.width / 10);
|
||||
break;
|
||||
case RIGHT: // 右
|
||||
case RIGHT:
|
||||
tar = 99999;
|
||||
right = c->geom.x + c->geom.width;
|
||||
nw += selmon->w.width / 16;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue