summaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-31 08:48:04 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-31 08:48:04 +0200
commit4c368bcd24172166aab32948fc63feaa6a1bec93 (patch)
treedddc175fd0f072d6b7ea09a9b91cbcdf8f9f64d6 /tag.c
parentsmall fix in config.arg.h (diff)
downloaddwm-4c368bcd24172166aab32948fc63feaa6a1bec93.tar.gz
dwm-4c368bcd24172166aab32948fc63feaa6a1bec93.zip
applied sanders patch to remove unnecessary commit()
Diffstat (limited to '')
-rw-r--r--tag.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/tag.c b/tag.c
index b7c06de..dcda6dc 100644
--- a/tag.c
+++ b/tag.c
@@ -30,17 +30,6 @@ RULES
30static RReg *rreg = NULL; 30static RReg *rreg = NULL;
31static unsigned int len = 0; 31static unsigned int len = 0;
32 32
33static void
34commit()
35{
36 /* asserts sel != NULL */
37 settitle(sel);
38 if(!isvisible(sel))
39 arrange(NULL);
40 else
41 drawstatus();
42}
43
44/* extern */ 33/* extern */
45 34
46Client * 35Client *
@@ -132,7 +121,7 @@ tag(Arg *arg)
132 for(i = 0; i < ntags; i++) 121 for(i = 0; i < ntags; i++)
133 sel->tags[i] = False; 122 sel->tags[i] = False;
134 sel->tags[arg->i] = True; 123 sel->tags[arg->i] = True;
135 commit(); 124 arrange(NULL);
136} 125}
137 126
138void 127void
@@ -147,5 +136,5 @@ toggletag(Arg *arg)
147 for(i = 0; i < ntags && !sel->tags[i]; i++); 136 for(i = 0; i < ntags && !sel->tags[i]; i++);
148 if(i == ntags) 137 if(i == ntags)
149 sel->tags[arg->i] = True; 138 sel->tags[arg->i] = True;
150 commit(); 139 arrange(NULL);
151} 140}