[wiki] [sites] [dwm][patch] cfacts centeredmaster remove unnecessary multiplications || Aaron Duxler
commit a7ef7f7b5502fa883b1cb504390d2a6180f2d63e
Author: Aaron Duxler <aaron.duxler_AT_gmail.com>
Date: Wed Jun 5 10:30:23 2019 +0200
[dwm][patch] cfacts centeredmaster remove unnecessary multiplications
diff --git a/dwm.suckless.org/patches/cfacts/dwm-cfacts_centeredmaster-6.2.diff b/dwm.suckless.org/patches/cfacts/dwm-cfacts_centeredmaster-6.2.diff
index f645f61a..f7309bcd 100644
--- a/dwm.suckless.org/patches/cfacts/dwm-cfacts_centeredmaster-6.2.diff
+++ b/dwm.suckless.org/patches/cfacts/dwm-cfacts_centeredmaster-6.2.diff
_AT_@ -101,7 +101,7 @@ diff -up a/dwm.c b/dwm.c
+ } else {
+ /* stack clients are stacked vertically */
+ if ((i - m->nmaster) % 2) {
-+ h = (m->wh - ety) * (c->cfact / (lfacts*2))*2;
++ h = (m->wh - ety) * (c->cfact / lfacts);
+ if(m->nmaster == 0)
+ resize(c, m->wx, m->wy + ety, tw - 2*c->bw,
+ h - 2*c->bw, 0);
_AT_@ -111,7 +111,7 @@ diff -up a/dwm.c b/dwm.c
+ ety += HEIGHT(c);
+ lfacts -= c->cfact;
+ } else {
-+ h = (m->wh - oty) * (c->cfact / (rfacts*2))*2;
++ h = (m->wh - oty) * (c->cfact / rfacts);
+ resize(c, m->wx + mx + mw, m->wy + oty,
+ tw - 2*c->bw, h - 2*c->bw, 0);
+ oty += HEIGHT(c);
Received on Wed Jun 05 2019 - 10:28:03 CEST
This archive was generated by hypermail 2.3.0
: Wed Jun 05 2019 - 10:36:27 CEST