sites

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

commit ca48ba37e722bba955670ea5e5de5b50b08fec51
parent f132dd0c413208512e019f443dc10e57d5d43b90
Author: Jan Christoph Ebersbach <jceb@e-jc.de>
Date:   Sun, 31 Jul 2016 07:55:01 +0200

Update patch tag all

Diffstat:
Adwm.suckless.org/patches/dwm-tagall-20160731-56a31dc.diff | 33+++++++++++++++++++++++++++++++++
Mdwm.suckless.org/patches/tagall.md | 1+
2 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-tagall-20160731-56a31dc.diff b/dwm.suckless.org/patches/dwm-tagall-20160731-56a31dc.diff @@ -0,0 +1,33 @@ +Author: Jan Christoph Ebersbach <jceb@e-jc.de> +URL: http://dwm.suckless.org/patches/historical/tagall +Shortcut to move all (floating) windows from one tag to another. + +Index: dwm/tagall.c +=================================================================== +--- /dev/null ++++ dwm/tagall.c +@@ -0,0 +1,24 @@ ++void ++tagall(const Arg *arg) { ++ if (!selmon->clients) ++ return; ++ /* if parameter starts with F, just move floating windows */ ++ int floating_only = (char *)arg->v && ((char *)arg->v)[0] == 'F' ? 1 : 0; ++ int tag = (char *)arg->v ? atoi(((char *)arg->v) + floating_only) : 0; ++ int j; ++ Client* c; ++ if(tag >= 0 && tag < LENGTH(tags)) ++ for(c = selmon->clients; c; c = c->next) ++ { ++ if(!floating_only || c->isfloating) ++ for(j = 0; j < LENGTH(tags); j++) ++ { ++ if(c->tags & 1 << j && selmon->tagset[selmon->seltags] & 1 << j) ++ { ++ c->tags = c->tags ^ (1 << j & TAGMASK); ++ c->tags = c->tags | 1 << (tag-1); ++ } ++ } ++ } ++ arrange(selmon); ++} diff --git a/dwm.suckless.org/patches/tagall.md b/dwm.suckless.org/patches/tagall.md @@ -8,6 +8,7 @@ Shortcut to move all (floating) windows from one tag to another. Patches against different versions of dwm are available at [dwm-clean-patches](https://github.com/jceb/dwm-clean-patches). + * [dwm-tagall-20160731-56a31dc.diff](dwm-tagall-20160731-56a31dc.diff) * [dwm-tagall-6.1.diff](dwm-tagall-6.1.diff) (1058b) (20140209) * [dwm-10e232f9ace7-tagall.diff](dwm-10e232f9ace7-tagall.diff) (988b) (20120406) * [dwm-tagall-6.0.diff](dwm-tagall-6.0.diff) (988b) (20120406)