Compare commits

...

4 Commits

Author SHA1 Message Date
metalcranium 85427bdb01 Merge branch 'main' into main 2026-03-17 05:43:39 +01:00
metalcranium 80c0d175a3 Update patches/centeredmaster/centeredmaster.patch
fixed windows on being placed properly on smaller screens
2026-03-14 17:12:41 +01:00
metalcranium 447397a44c Merge branch 'main' into main 2026-03-12 04:04:31 +01:00
metalcranium 675fa1815e Upload files to "patches/centeredmaster"
changes to positioning of windows
2026-03-08 00:13:59 +01:00
@@ -78,16 +78,34 @@ 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; + mw = m->w.width - (m->w.width /2);
+ mx = 0; + 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 * m->mfact) : 0;
+ tw = m->w.width - mw; + // tw = m->w.width - mw;
+ tw = mw / 2;
+ +
+ if (n - m->nmaster > 1) { + if (n - m->nmaster > 1) {
+ /* only one client */ + /* only one client */