diff options
author | okan <okan> | 2010-07-30 12:28:19 +0000 |
---|---|---|
committer | okan <okan> | 2010-07-30 12:28:19 +0000 |
commit | 2440efad06f6c6d13d5d46c498d29ccee4d58c42 (patch) | |
tree | de1c1dde376526026873193d772abc8d16754bdd /group.c | |
parent | aaca5b7e45d4d4bdbd3e1001d80cccca4c14d77c (diff) | |
download | cwm-2440efad06f6c6d13d5d46c498d29ccee4d58c42.tar.gz cwm-2440efad06f6c6d13d5d46c498d29ccee4d58c42.tar.xz cwm-2440efad06f6c6d13d5d46c498d29ccee4d58c42.zip |
revert -r1.45 of group.c (log was: fix window name and class to match
cwmrc(5)). instead, fix cwmrc(5) to match the old behavior which also happens to match the example config, of which many have based their configs; this also nicely matches the output of xprop(1). clean-up of variable names as a separate commit. suggested by sthen (and something we should have done initially). discussed with and ok oga@
Diffstat (limited to 'group.c')
-rw-r--r-- | group.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/group.c b/group.c index 0624098..d88484b 100644 --- a/group.c +++ b/group.c @@ -188,11 +188,12 @@ 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(p); + aw->name = xstrdup(class); + aw->class = xstrdup(p); } - aw->class = xstrdup(class); aw->num = no; TAILQ_INSERT_TAIL(&conf->autogroupq, aw, entry); |