sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit d8e38771f40ffd487217a69a71721d984bb24aae
parent f45db1d25c4bbf8200327bb730a5d5c2c4e548fd
Author: Aaron Duxler <aaron@duxler.xyz>
Date:   Thu, 30 Apr 2020 16:48:41 +0200

[dwm][patch] dwm-pertag-perseltag fix bug. include the last tag

Diffstat:
Mdwm.suckless.org/patches/pertag/dwm-pertag-perseltag-6.2.diff | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dwm.suckless.org/patches/pertag/dwm-pertag-perseltag-6.2.diff b/dwm.suckless.org/patches/pertag/dwm-pertag-perseltag-6.2.diff @@ -70,7 +70,7 @@ diff -up a/dwm.c b/dwm.c selmon->nmaster = MAX(selmon->nmaster + arg->i, 0); + for(i=0; i<=LENGTH(tags); ++i) + if(selmon->tagset[selmon->seltags] & 1<<i) -+ selmon->pertag->nmasters[(i+1)%LENGTH(tags)] = selmon->nmaster; ++ selmon->pertag->nmasters[(i+1)%(LENGTH(tags)+1)] = selmon->nmaster; arrange(selmon); } @@ -88,8 +88,8 @@ diff -up a/dwm.c b/dwm.c + for(i=0; i<=LENGTH(tags); ++i) + if(selmon->tagset[selmon->seltags] & 1<<i) + { -+ selmon->pertag->ltidxs[(i+1)%LENGTH(tags)][selmon->sellt] = selmon->lt[selmon->sellt]; -+ selmon->pertag->sellts[(i+1)%LENGTH(tags)] = selmon->sellt; ++ selmon->pertag->ltidxs[(i+1)%(LENGTH(tags)+1)][selmon->sellt] = selmon->lt[selmon->sellt]; ++ selmon->pertag->sellts[(i+1)%(LENGTH(tags)+1)] = selmon->sellt; + } + if (selmon->sel) @@ -111,7 +111,7 @@ diff -up a/dwm.c b/dwm.c selmon->mfact = f; + for(i=0; i<=LENGTH(tags); ++i) + if(selmon->tagset[selmon->seltags] & 1<<i) -+ selmon->pertag->mfacts[(i+1)%LENGTH(tags)] = f; ++ selmon->pertag->mfacts[(i+1)%(LENGTH(tags)+1)] = f; arrange(selmon); } @@ -123,7 +123,7 @@ diff -up a/dwm.c b/dwm.c selmon->showbar = !selmon->showbar; + for(i=0; i<=LENGTH(tags); ++i) + if(selmon->tagset[selmon->seltags] & 1<<i) -+ selmon->pertag->showbars[(i+1)%LENGTH(tags)] = selmon->showbar; ++ selmon->pertag->showbars[(i+1)%(LENGTH(tags)+1)] = selmon->showbar; updatebarpos(selmon); XMoveResizeWindow(dpy, selmon->barwin, selmon->wx, selmon->by, selmon->ww, bh); arrange(selmon);