mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-15 08:21:41 -04:00
修复螺旋布局外部间隙
This commit is contained in:
parent
b3a8150996
commit
1c7e95f01e
1 changed files with 7 additions and 7 deletions
14
maomao.c
14
maomao.c
|
|
@ -4845,10 +4845,10 @@ void fibonacci(Monitor *mon, int s) {
|
||||||
if(n == 0)
|
if(n == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
nx = mon->w.x;
|
nx = mon->w.x + gappoh;
|
||||||
ny = 0;
|
ny = mon->w.y + gappov;
|
||||||
nw = mon->w.width;
|
nw = mon->w.width - gappoh;
|
||||||
nh = mon->w.height;
|
nh = mon->w.height - gappov;
|
||||||
|
|
||||||
wl_list_for_each(c, &clients, link)
|
wl_list_for_each(c, &clients, link)
|
||||||
if (VISIBLEON(c, mon) && !c->isfloating){
|
if (VISIBLEON(c, mon) && !c->isfloating){
|
||||||
|
|
@ -4883,11 +4883,11 @@ void fibonacci(Monitor *mon, int s) {
|
||||||
if(i == 0)
|
if(i == 0)
|
||||||
{
|
{
|
||||||
if(n != 1)
|
if(n != 1)
|
||||||
nw = mon->w.width * mon->mfact;
|
nw = (mon->w.width - gappoh) * mon->mfact;
|
||||||
ny = mon->w.y;
|
ny = mon->w.y + gappov;
|
||||||
}
|
}
|
||||||
else if(i == 1)
|
else if(i == 1)
|
||||||
nw = mon->w.width - nw;
|
nw = mon->w.width - gappoh - nw;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
resize(c, (struct wlr_box){.x = nx, .y = ny,
|
resize(c, (struct wlr_box){.x = nx, .y = ny,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue