Update patches/centeredmaster/centeredmaster-0.7.patch

This commit is contained in:
metalcranium 2026-04-11 08:55:46 +02:00
parent c5d5f9fed4
commit cf42400eeb

View File

@ -78,33 +78,15 @@ index def2562..c2456dd 100644
+ if (n == 0) + if (n == 0)
+ return; + return;
+ +
# + /* initialize areas */
# + mw = m->w.width;
# + mx = 0;
# + my = 0;
# + tw = mw;
# +
# + if (n > m->nmaster) {
# + /* go mfact box in the center if more than nmaster clients */
# + mw = m->nmaster ? (int)roundf(m->w.width * m->mfact) : 0;
# + tw = m->w.width - mw;
# +
# + if (n - m->nmaster > 1) {
# + /* only one client */
# + mx = (m->w.width - mw) / 2;
# + tw = (m->w.width - mw) / 2;
# + }
# + }
+ /* initialize areas */ + /* initialize areas */
+ mw = m->w.width - (m->w.width /2); + mw = m->w.width / 2;
+ mx = m->w.width / 4; + mx = m->w.width / 4;
+ my = 0; + my = 0;
+ tw = mw; + tw = mw;
+ +
+ if (n > m->nmaster) { + if (n > m->nmaster) {
+ /* go mfact box in the center if more than nmaster clients */ + /* go mfact box in the center if more than nmaster clients */
+ // mw = m->nmaster ? (int)roundf(m->w.width * m->mfact) : 0; + mw = m->nmaster ? (int)roundf(m->w.width / 2) : 0;
+ // tw = m->w.width - mw;
+ tw = mw / 2; + tw = mw / 2;
+ +
+ if (n - m->nmaster > 1) { + if (n - m->nmaster > 1) {