From 80c0d175a36a218676c8a15e07e0c5ca4869f503 Mon Sep 17 00:00:00 2001 From: metalcranium Date: Sat, 14 Mar 2026 17:12:41 +0100 Subject: [PATCH] Update patches/centeredmaster/centeredmaster.patch fixed windows on being placed properly on smaller screens --- patches/centeredmaster/centeredmaster.patch | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/patches/centeredmaster/centeredmaster.patch b/patches/centeredmaster/centeredmaster.patch index 0dc2042..c20296d 100644 --- a/patches/centeredmaster/centeredmaster.patch +++ b/patches/centeredmaster/centeredmaster.patch @@ -96,24 +96,14 @@ index def2562..c2456dd 100644 # + } # + } + /* initialize areas */ -+ // checks if the screen is larger than -+ if (m->w.width > 1920){ + mw = m->w.width - (m->w.width /2); + mx = m->w.width / 4; + my = 0; + tw = mw; -+ } -+ else{ -+ 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; + tw = mw / 2; +