From cf42400eebb9c61ba9009eb3c015ba710a670f87 Mon Sep 17 00:00:00 2001 From: metalcranium Date: Sat, 11 Apr 2026 08:55:46 +0200 Subject: [PATCH] Update patches/centeredmaster/centeredmaster-0.7.patch --- .../centeredmaster/centeredmaster-0.7.patch | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/patches/centeredmaster/centeredmaster-0.7.patch b/patches/centeredmaster/centeredmaster-0.7.patch index c20296d..ed0f881 100644 --- a/patches/centeredmaster/centeredmaster-0.7.patch +++ b/patches/centeredmaster/centeredmaster-0.7.patch @@ -78,33 +78,15 @@ index def2562..c2456dd 100644 + if (n == 0) + 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 */ -+ mw = m->w.width - (m->w.width /2); ++ mw = m->w.width / 2; + mx = m->w.width / 4; + 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; ++ mw = m->nmaster ? (int)roundf(m->w.width / 2) : 0; + tw = mw / 2; + + if (n - m->nmaster > 1) {