summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorokan <okan>2014-08-20 12:33:12 +0000
committerokan <okan>2014-08-20 12:33:12 +0000
commit5d22b261a61ae114cf969e3687571a4cc08c4044 (patch)
tree1dfc472595b31ac27e8c4779e9187d14548c09c4 /group.c
parent6c835fd5854bab5de651757ba987b660ceb492a1 (diff)
downloadcwm-5d22b261a61ae114cf969e3687571a4cc08c4044.tar.gz
cwm-5d22b261a61ae114cf969e3687571a4cc08c4044.tar.xz
cwm-5d22b261a61ae114cf969e3687571a4cc08c4044.zip
fix a misleading comment and function name
Diffstat (limited to 'group.c')
-rw-r--r--group.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/group.c b/group.c
index 647b3d1..008118b 100644
--- a/group.c
+++ b/group.c
@@ -35,7 +35,7 @@
 static void		 group_assign(struct group_ctx *, struct client_ctx *);
 static void		 group_hide(struct screen_ctx *, struct group_ctx *);
 static void		 group_show(struct screen_ctx *, struct group_ctx *);
-static void		 group_fix_hidden_state(struct group_ctx *);
+static void		 group_set_hidden_state(struct group_ctx *);
 static void		 group_setactive(struct screen_ctx *, long);
 static void		 group_set_names(struct screen_ctx *);
 
@@ -147,7 +147,7 @@ group_set_state(struct screen_ctx *sc)
 	struct group_ctx	*gc;
 
 	TAILQ_FOREACH(gc, &sc->groupq, entry)
-		group_fix_hidden_state(gc);
+		group_set_hidden_state(gc);
 }
 
 static void
@@ -203,10 +203,10 @@ group_sticky_toggle_exit(struct client_ctx *cc)
 }
 
 /*
- * if group_hidetoggle would produce no effect, toggle the group's hidden state
+ * If all clients in a group are hidden, then set the group state as hidden.
  */
 static void
-group_fix_hidden_state(struct group_ctx *gc)
+group_set_hidden_state(struct group_ctx *gc)
 {
 	struct client_ctx	*cc;
 	int			 same = 0;
@@ -229,7 +229,7 @@ group_hidetoggle(struct screen_ctx *sc, int idx)
 		errx(1, "group_hidetoggle: index out of range (%d)", idx);
 
 	gc = &sc->groups[idx];
-	group_fix_hidden_state(gc);
+	group_set_hidden_state(gc);
 
 	if (gc->hidden)
 		group_show(sc, gc);