summaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-07-21 07:37:52 +0200
committerarg@10ksloc.org <unknown>2006-07-21 07:37:52 +0200
commitcd8d8e120857329800e93e22572e35560d1b0e80 (patch)
treed8558f0a5e9c80c63947562f53752e71602ed241 /tag.c
parentapplied sanders no_sizehints for tiled mode patch (thx!) (diff)
downloaddwm-cd8d8e120857329800e93e22572e35560d1b0e80.tar.gz
dwm-cd8d8e120857329800e93e22572e35560d1b0e80.zip
sanitization of several clunky stuff, removed heretag (rarely of use), simplified pop(), changed shortcuts to always contain MODKEY
Diffstat (limited to '')
-rw-r--r--tag.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/tag.c b/tag.c
index 21eb9fa..f7ab6b9 100644
--- a/tag.c
+++ b/tag.c
@@ -21,15 +21,16 @@ typedef struct {
21/* CUSTOMIZE */ 21/* CUSTOMIZE */
22static Rule rule[] = { 22static Rule rule[] = {
23 /* class:instance tags isfloat */ 23 /* class:instance tags isfloat */
24 { "Firefox.*", { [Twww] = "www" }, False }, 24 { "Firefox.*", { [Tnet] = "net" }, False },
25 { "Gimp.*", { 0 }, True}, 25 { "Gimp.*", { 0 }, True},
26}; 26};
27 27
28char *tags[TLast] = { 28char *tags[TLast] = {
29 [Tscratch] = "scratch", 29 [Tfnord] = "fnord",
30 [Tdev] = "dev", 30 [Tdev] = "dev",
31 [Twww] = "www", 31 [Tnet] = "net",
32 [Twork] = "work", 32 [Twork] = "work",
33 [Tmisc] = "misc",
33}; 34};
34 35
35void (*arrange)(Arg *) = dotile; 36void (*arrange)(Arg *) = dotile;
@@ -148,25 +149,6 @@ getprev(Client *c)
148} 149}
149 150
150void 151void
151heretag(Arg *arg)
152{
153 int i;
154 Client *c;
155
156 if(arg->i == tsel)
157 return;
158
159 if(!(c = getnext(clients, arg->i)))
160 return;
161
162 for(i = 0; i < TLast; i++)
163 c->tags[i] = NULL;
164 c->tags[tsel] = tags[tsel];
165 pop(c);
166 focus(c);
167}
168
169void
170replacetag(Arg *arg) 152replacetag(Arg *arg)
171{ 153{
172 int i; 154 int i;