# HG changeset patch # User jasonwryan # Date 1369090302 -43200 # Tue May 21 10:51:42 2013 +1200 # Node ID be53270be7201edd0231e0e07f3385b8bc7284ee # Parent f6dd5ee6a64b82c6f7da7d928a332ea327fa7c52 Raziel's patch to pull to master diff --git a/new_master b/new_master new file mode 100644 --- /dev/null +++ b/new_master @@ -0,0 +1,28 @@ +# HG changeset patch +# Parent 7c322e64af1702eff6ba594e60129f2d758930ed + +diff -r 7c322e64af17 dwm.c +--- a/dwm.c Tue May 21 09:52:20 2013 +1200 ++++ b/dwm.c Tue May 21 10:25:40 2013 +1200 +@@ -1755,10 +1755,20 @@ + void + toggleview(const Arg *arg) { + unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK); ++ Client *c = NULL; ++ unsigned int found = 0; + + if(newtagset) { + selmon->tagset[selmon->seltags] = newtagset; +- focus(NULL); ++ ++ for(c = selmon->clients; c && !(found = c->tags & arg->ui); c = c->next); ++ if(found && ISVISIBLE(c)) { ++ detach(c); ++ attach(c); ++ focus(c); ++ } ++ else ++ focus(NULL); + arrange(selmon); + } + } diff --git a/series b/series --- a/series +++ b/series @@ -1,9 +1,10 @@ setup.makefile base.config.customizations +new_master statuscolours cycle push -fibonacci #-block -shiv.config #-block +fibonacci +shiv.config centurion.config #-block -veles.config +veles.config #-block