mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
Fibonacci updates
This commit is contained in:
parent
ac4c5081c5
commit
0b429b4994
@ -537,11 +537,15 @@ arrange_fibonacci(Monitor *m, int x, int y, int h, int w, int ih, int iv, int n,
|
||||
ny += nh + ih;
|
||||
}
|
||||
if ((i % 4) == 0) {
|
||||
if (s)
|
||||
if (s) {
|
||||
ny += nh + ih;
|
||||
else
|
||||
nh += hrest;
|
||||
}
|
||||
else {
|
||||
nh -= hrest;
|
||||
ny -= nh + ih;
|
||||
}
|
||||
}
|
||||
else if ((i % 4) == 1) {
|
||||
nx += nw + iv;
|
||||
nw += wrest;
|
||||
@ -559,11 +563,14 @@ arrange_fibonacci(Monitor *m, int x, int y, int h, int w, int ih, int iv, int n,
|
||||
} else {
|
||||
nw -= wrest;
|
||||
nx -= nw + iv;
|
||||
nh += hrest;
|
||||
}
|
||||
}
|
||||
if (i == 0) {
|
||||
if (an != 1)
|
||||
nw = (w - iv) * m->mfact;
|
||||
if (an != 1) {
|
||||
nw = (w - iv) - (w - iv) * (1 - m->mfact);
|
||||
wrest = 0;
|
||||
}
|
||||
ny = y;
|
||||
}
|
||||
else if (i == 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user