about summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorokan <okan>2010-09-25 20:01:27 +0000
committerokan <okan>2010-09-25 20:01:27 +0000
commit917bce4b8da39e68ed2200f1e2eab09582e7fa34 (patch)
tree73a70221109ca80bfe2072465086c50038ba62c4 /group.c
parent2440efad06f6c6d13d5d46c498d29ccee4d58c42 (diff)
downloadcwm-917bce4b8da39e68ed2200f1e2eab09582e7fa34.tar.gz
cwm-917bce4b8da39e68ed2200f1e2eab09582e7fa34.tar.xz
cwm-917bce4b8da39e68ed2200f1e2eab09582e7fa34.zip
spacing nits
Diffstat (limited to 'group.c')
-rw-r--r--group.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/group.c b/group.c
index d88484b..1c2fd03 100644
--- a/group.c
+++ b/group.c
@@ -179,19 +179,19 @@ group_init(struct screen_ctx *sc)
 }
 
 void
-group_make_autogroup(struct conf *conf, char *class, int no)
+group_make_autogroup(struct conf *conf, char *val, int no)
 {
 	struct autogroupwin	*aw;
 	char			*p;
 
 	aw = xcalloc(1, sizeof(*aw));
 
-	if ((p = strchr(class, ',')) == NULL) {
+	if ((p = strchr(val, ',')) == NULL) {
 		aw->name = NULL;
-		aw->class = xstrdup(class);
+		aw->class = xstrdup(val);
 	} else {
 		*(p++) = '\0';
-		aw->name = xstrdup(class);
+		aw->name = xstrdup(val);
 		aw->class = xstrdup(p);
 	}
 	aw->num = no;
@@ -426,6 +426,7 @@ group_autogroup(struct client_ctx *cc)
 
 	if (cc->app_class == NULL || cc->app_name == NULL)
 		return;
+
 	if (xu_getprop(cc->win, _NET_WM_DESKTOP, XA_CARDINAL,
 	    1, (unsigned char **)&grpno) > 0) {
 		if (*grpno == 0xffffffff)