diff options
| author | P.P.A <adolphs@moselle.moe> | 2023-07-08 10:00:23 +0200 |
|---|---|---|
| committer | P.P.A <adolphs@moselle.moe> | 2023-07-08 10:00:23 +0200 |
| commit | 059358da2f4e3b7e685ee03607cc3f6c04c567b4 (patch) | |
| tree | 1382eb62017855cf67fd6b910f75b5f9f8283a19 /dwm.c.rej | |
| parent | 6ce3b634a019a5a130564dd21db74f1068b58422 (diff) | |
pertag
Diffstat (limited to 'dwm.c.rej')
| -rw-r--r-- | dwm.c.rej | 32 |
1 files changed, 24 insertions, 8 deletions
@@ -1,12 +1,28 @@ ---- dwm.c -+++ dwm.c -@@ -723,6 +790,9 @@ destroynotify(XEvent *e) +--- dwm.c 2020-05-23 00:20:34.877944603 +0200 ++++ dwm.c 2020-06-22 12:49:55.298859682 +0200 +@@ -1566,13 +1616,24 @@ void + setmfact(const Arg *arg) + { + float f; ++ unsigned int i; - if ((c = wintoclient(ev->window))) - unmanage(c, 1); + if (!arg || !selmon->lt[selmon->sellt]->arrange) + return; + f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0; +- if (f < 0.1 || f > 0.9) ++ if (arg->f == 0.0) ++ f = mfact; ++ if (f < 0.05 || f > 0.95) + return; + selmon->mfact = f; ++ for(i=0; i<LENGTH(tags); ++i) ++ if(selmon->tagset[selmon->seltags] & 1<<i) ++ selmon->pertag->mfacts[i+1] = f; + -+ else if ((c = swallowingclient(ev->window))) -+ unmanage(c->swallowing, 1); ++ if(selmon->pertag->curtag == 0) ++ { ++ selmon->pertag->mfacts[0] = f; ++ } + arrange(selmon); } - void |
