X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=tag.c;h=21eb9fa280b760ab36239e839e9d8c03374f99ad;hb=04eb016e782743ec88f150ec6f5389703bed3ce2;hp=d6c349b808e2a53134162e8a01bb3b062e2f819f;hpb=4688ad181da14be36e034918580ec0ce5968ffdb;p=dwm.git 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) {