aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authorokan2010-07-30 12:28:19 +0000
committerokan2010-07-30 12:28:19 +0000
commit2c47e5f8ec21fc54bc3862cc9b8ef922fd898b67 (patch)
tree257c2bdccf3bf87eb56aacf5ec2fc31ff52c7003 /group.c
parent2e026763a1575945d026024b7eb13d14c3cb7a2d (diff)
downloadcwm-2c47e5f8ec21fc54bc3862cc9b8ef922fd898b67.tar.gz
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 '')
-rw-r--r--group.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/group.c b/group.c
index de2e2b6..4261d25 100644
--- a/group.c
+++ b/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.
*
- * $Id: group.c,v 1.45 2010/06/28 12:29:04 okan Exp $
+ * $Id: group.c,v 1.46 2010/07/30 12:28:19 okan Exp $
*/
#include <sys/param.h>
@@ -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);