summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2010-06-28 12:29:04 +0000
committerokan <okan>2010-06-28 12:29:04 +0000
commit2a5e1791d47ad603d135f8d472135cb6a2aadfb0 (patch)
treeb6842ca7ca5ba280b0e8c346283061616f35cde3
parent85a53083cbe06c33cdea95b6a9fcb953bcc3afa2 (diff)
downloadcwm-2a5e1791d47ad603d135f8d472135cb6a2aadfb0.tar.gz
cwm-2a5e1791d47ad603d135f8d472135cb6a2aadfb0.tar.xz
cwm-2a5e1791d47ad603d135f8d472135cb6a2aadfb0.zip
fix window name and class to match cwmrc(5); from Holger Mikolon - thanks!
ok oga@
-rw-r--r--group.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/group.c b/group.c
index d88484b..0624098 100644
--- a/group.c
+++ b/group.c
@@ -188,12 +188,11 @@ group_make_autogroup(struct conf *conf, char *class, int no)
 
 	if ((p = strchr(class, ',')) == NULL) {
 		aw->name = NULL;
-		aw->class = xstrdup(class);
 	} else {
 		*(p++) = '\0';
-		aw->name = xstrdup(class);
-		aw->class = xstrdup(p);
+		aw->name = xstrdup(p);
 	}
+	aw->class = xstrdup(class);
 	aw->num = no;
 
 	TAILQ_INSERT_TAIL(&conf->autogroupq, aw, entry);