summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2014-08-20 12:33:13 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2014-08-20 12:33:13 +0000
commit95ad6a81fccfa26df85a41ed04c0102780bd8fad (patch)
tree91c545029fed04ba71f3352ae3de37c26ce4cf5d /app
parentc45259d46ec456387266078aa0ffa22b58d9d447 (diff)
fix a misleading comment and function name
Diffstat (limited to 'app')
-rw-r--r--app/cwm/group.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/cwm/group.c b/app/cwm/group.c
index ef917a171..a25456b36 100644
--- a/app/cwm/group.c
+++ b/app/cwm/group.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: group.c,v 1.89 2014/08/19 12:47:51 okan Exp $
+ * $OpenBSD: group.c,v 1.90 2014/08/20 12:33:12 okan Exp $
*/
#include <sys/param.h>
@@ -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);