mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Fixing bugs in relation to #12
This commit is contained in:
parent
873b856428
commit
9bc39c02b2
@ -83,9 +83,9 @@ centeredfloatingmaster(Monitor *m)
|
|||||||
} else {
|
} else {
|
||||||
/* stack clients are stacked horizontally */
|
/* stack clients are stacked horizontally */
|
||||||
#if CFACTS_PATCH
|
#if CFACTS_PATCH
|
||||||
resize(c, sx, sy, sw * (c->cfact / sfacts) + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), sh - (2*c->bw), 0);
|
resize(c, sx, sy, (sw / sfacts) * c->cfact + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), sh - (2*c->bw), 0);
|
||||||
#else
|
#else
|
||||||
resize(c, sx, sy, sw * (c->cfact / sfacts) + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), sh - (2*c->bw), 0);
|
resize(c, sx, sy, (sw / sfacts) + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), sh - (2*c->bw), 0);
|
||||||
#endif // CFACTS_PATCH
|
#endif // CFACTS_PATCH
|
||||||
#if VANITYGAPS_PATCH
|
#if VANITYGAPS_PATCH
|
||||||
sx += WIDTH(c) + iv;
|
sx += WIDTH(c) + iv;
|
||||||
|
@ -107,9 +107,9 @@ centeredmaster(Monitor *m)
|
|||||||
if (!m->nmaster || n < m->nmaster)
|
if (!m->nmaster || n < m->nmaster)
|
||||||
mtotal += mh / mfacts;
|
mtotal += mh / mfacts;
|
||||||
else if ((n - m->nmaster) % 2)
|
else if ((n - m->nmaster) % 2)
|
||||||
ltotal += lh / sfacts;
|
ltotal += lh / lfacts;
|
||||||
else
|
else
|
||||||
rtotal += rh / lfacts;
|
rtotal += rh / rfacts;
|
||||||
#endif // CFACTS_PATCH
|
#endif // CFACTS_PATCH
|
||||||
|
|
||||||
mrest = mh - mtotal;
|
mrest = mh - mtotal;
|
||||||
|
@ -57,7 +57,7 @@ getfactsforrange(Monitor *m, int an, int ai, int size, int *rest, float *fact)
|
|||||||
#if CFACTS_PATCH
|
#if CFACTS_PATCH
|
||||||
total += size * (c->cfact / facts);
|
total += size * (c->cfact / facts);
|
||||||
#else
|
#else
|
||||||
total += size / sfacts;
|
total += size / facts;
|
||||||
#endif // CFACTS_PATCH
|
#endif // CFACTS_PATCH
|
||||||
|
|
||||||
*rest = size - total;
|
*rest = size - total;
|
||||||
|
Loading…
Reference in New Issue
Block a user