X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=tag.c;h=5da5711c2246539a8e8e3dbd8936705fe06d66ab;hp=8951dd82bc89ab5f040714f7473f02f7c03b7cfa;hb=849e631510ed6533ac930449804e477fe67a43c2;hpb=adaa28a6e600f636f5e86244ccef69e98419ba1a diff --git a/tag.c b/tag.c index 8951dd8..5da5711 100644 --- a/tag.c +++ b/tag.c @@ -7,24 +7,23 @@ #include #include -/********** CUSTOMIZE **********/ +/* static */ +/* CUSTOMIZE */ +static Rule rule[] = { + /* class instance tags isfloat */ + { "Firefox-bin", "Gecko", { [Twww] = "www" }, False }, +}; + +/* extern */ + +/* CUSTOMIZE */ char *tags[TLast] = { [Tscratch] = "scratch", [Tdev] = "dev", [Twww] = "www", [Twork] = "work", }; - -static Rule rule[] = { - /* class instance tags dofloat */ - { "Firefox-bin", "Gecko", { [Twww] = "www" }, False }, -}; - -/********** CUSTOMIZE **********/ - -/* extern functions */ - void (*arrange)(Arg *) = dotile; void @@ -67,7 +66,7 @@ dotile(Arg *arg) w = sw - mw; arrange = dotile; for(n = 0, c = clients; c; c = c->next) - if(c->tags[tsel] && !c->dofloat) + if(c->tags[tsel] && !c->isfloat) n++; if(n > 1) @@ -77,7 +76,7 @@ dotile(Arg *arg) for(i = 0, c = clients; c; c = c->next) { if(c->tags[tsel]) { - if(c->dofloat) { + if(c->isfloat) { higher(c); resize(c, True); continue; @@ -155,7 +154,7 @@ settags(Client *c) { for(j = 0; j < TLast; j++) c->tags[j] = rule[i].tags[j]; - c->dofloat = rule[i].dofloat; + c->isfloat = rule[i].isfloat; matched = True; break; }