Hi tech@,

the autogroup code in xenocara/app/cwm/group.c mixes up windowname and 
windowclass.
At least the code doesn't match the man page cwmrc(5).

Below is a proposed fix. I hope that alpine doesn't eat the tabs ...

Regards,
Holger


Index: group.c
===================================================================
RCS file: /cvs/xenocara/app/cwm/group.c,v
retrieving revision 1.44
diff -u -r1.44 group.c
--- group.c     11 Apr 2010 16:51:26 -0000      1.44
+++ group.c     27 Jun 2010 17:17:01 -0000
@@ -188,12 +188,11 @@

        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);

Reply via email to