Mercurial > dwm-meillo
comparison tag.c @ 123:61490330e90a
cleaned up code
author | arg@10ksloc.org |
---|---|
date | Thu, 20 Jul 2006 12:18:06 +0200 |
parents | 329fd7dae530 |
children | 75576e44c1d8 |
comparison
equal
deleted
inserted
replaced
122:f20cea484900 | 123:61490330e90a |
---|---|
18 Bool isfloat; | 18 Bool isfloat; |
19 } Rule; | 19 } Rule; |
20 | 20 |
21 /* CUSTOMIZE */ | 21 /* CUSTOMIZE */ |
22 static Rule rule[] = { | 22 static Rule rule[] = { |
23 /* class instance tags isfloat */ | 23 /* class:instance tags isfloat */ |
24 { "Firefox.*", { [Twww] = "www" }, False }, | 24 { "Firefox.*", { [Twww] = "www" }, False }, |
25 { "Gimp.*", { 0 }, True}, | 25 { "Gimp.*", { 0 }, True}, |
26 }; | 26 }; |
27 | 27 |
28 /* extern */ | 28 /* extern */ |
29 | 29 |
30 /* CUSTOMIZE */ | 30 /* CUSTOMIZE */ |
69 } | 69 } |
70 | 70 |
71 void | 71 void |
72 dotile(Arg *arg) | 72 dotile(Arg *arg) |
73 { | 73 { |
74 int n, i, w, h; | |
74 Client *c; | 75 Client *c; |
75 int n, i, w, h; | |
76 | 76 |
77 w = sw - mw; | 77 w = sw - mw; |
78 arrange = dotile; | 78 arrange = dotile; |
79 for(n = 0, c = clients; c; c = c->next) | 79 for(n = 0, c = clients; c; c = c->next) |
80 if(c->tags[tsel] && !c->isfloat) | 80 if(c->tags[tsel] && !c->isfloat) |
159 | 159 |
160 void | 160 void |
161 replacetag(Arg *arg) | 161 replacetag(Arg *arg) |
162 { | 162 { |
163 int i; | 163 int i; |
164 | |
164 if(!sel) | 165 if(!sel) |
165 return; | 166 return; |
166 | 167 |
167 for(i = 0; i < TLast; i++) | 168 for(i = 0; i < TLast; i++) |
168 sel->tags[i] = NULL; | 169 sel->tags[i] = NULL; |