diff tag.c @ 393:6786cd59468f

applied sanders patch to remove unnecessary commit()
author Anselm R. Garbe <arg@10kloc.org>
date Thu, 31 Aug 2006 08:48:04 +0200
parents 126e78129f1d
children 761d0cd6e504
line wrap: on
line diff
--- a/tag.c	Wed Aug 30 13:00:30 2006 +0200
+++ b/tag.c	Thu Aug 31 08:48:04 2006 +0200
@@ -30,17 +30,6 @@
 static RReg *rreg = NULL;
 static unsigned int len = 0;
 
-static void
-commit()
-{
-	/* asserts sel != NULL */
-	settitle(sel);
-	if(!isvisible(sel))
-		arrange(NULL);
-	else
-		drawstatus();
-}
-
 /* extern */
 
 Client *
@@ -132,7 +121,7 @@
 	for(i = 0; i < ntags; i++)
 		sel->tags[i] = False;
 	sel->tags[arg->i] = True;
-	commit();
+	arrange(NULL);
 }
 
 void
@@ -147,5 +136,5 @@
 	for(i = 0; i < ntags && !sel->tags[i]; i++);
 	if(i == ntags)
 		sel->tags[arg->i] = True;
-	commit();
+	arrange(NULL);
 }