sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f81790e6aeb3b5a2545d26b91dd880d20a29a60c
parent 01e7efe97c63ffbd8bbb704e4a3f14b74a4b279d
Author: Jan Christoph Ebersbach <jceb@e-jc.de>
Date:   Tue, 14 Feb 2012 21:26:07 +0100

update tagall patch to dwm 6.0
Diffstat:
Adwm.suckless.org/patches/dwm-6.0-tagall.diff | 31+++++++++++++++++++++++++++++++
Mdwm.suckless.org/patches/tagall.md | 3++-
2 files changed, 33 insertions(+), 1 deletion(-)

diff --git a/dwm.suckless.org/patches/dwm-6.0-tagall.diff b/dwm.suckless.org/patches/dwm-6.0-tagall.diff @@ -0,0 +1,31 @@ +URL: http://dwm.suckless.org/patches/historical/tagall +Shortcut to move all (floating) windows from one tag to another. + +diff -r 6f54bd1ef439 tagall.c +--- /dev/null Thu Jan 01 00:00:00 1970 +0000 ++++ b/tagall.c Sun Feb 12 09:32:25 2012 +0100 +@@ -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 @@ -5,6 +5,7 @@ Shortcut to move all (floating) windows from one tag to another. ## Download ## + * [dwm-6.0-tagall.diff][4] * [dwm-5.0-tagall.diff][3] * [dwm-4.6-tagall.diff][2] * [dwm-4.5-tagall.diff][1] @@ -29,4 +30,4 @@ Shortcut to move all (floating) windows from one tag to another. [1]: http://www.e-jc.de/dwm/4.5/dwm-4.5-tip_ac233c362502-tagall.diff [2]: http://www.e-jc.de/dwm/4.6/current/dwm-4.6-tagall.diff [3]: http://www.e-jc.de/dwm/5.0/current/dwm-5.0-tagall.diff - +[4]: dwm-6.0-tagall.diff