X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/4688ad181da14be36e034918580ec0ce5968ffdb..0a4342098b6d01367c69782c643cb685f1cd3c3d:/tag.c diff --git a/tag.c b/tag.c index d6c349b..21eb9fa 100644 --- a/tag.c +++ b/tag.c @@ -25,17 +25,19 @@ static Rule rule[] = { { "Gimp.*", { 0 }, True}, }; -/* extern */ - -/* CUSTOMIZE */ char *tags[TLast] = { [Tscratch] = "scratch", [Tdev] = "dev", [Twww] = "www", [Twork] = "work", }; + void (*arrange)(Arg *) = dotile; +/* END CUSTOMIZE */ + +/* extern */ + void appendtag(Arg *arg) { @@ -138,6 +140,13 @@ getnext(Client *c, unsigned int t) return c; } +Client * +getprev(Client *c) +{ + for(; c && !c->tags[tsel]; c = c->prev); + return c; +} + void heretag(Arg *arg) {