mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2026-05-06 16:33:25 +00:00
Update patches/centeredmaster/centeredmaster-0.7.patch
This commit is contained in:
parent
c5d5f9fed4
commit
cf42400eeb
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user