summaryrefslogtreecommitdiff
path: root/app/cwm
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2010-06-28 12:29:05 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2010-06-28 12:29:05 +0000
commita8a0be7020e7bbe2852c351b32176821fa2eb69e (patch)
tree570bd6c6279d7d28efc85f8ca9304661035b384a /app/cwm
parentcb0822df99234a2cc984201ee44b883dc5aca4a5 (diff)
fix window name and class to match cwmrc(5); from Holger Mikolon - thanks!
ok oga@
Diffstat (limited to 'app/cwm')
-rw-r--r--app/cwm/group.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/cwm/group.c b/app/cwm/group.c
index 0f6a9fa61..de2e2b6cf 100644
--- a/app/cwm/group.c
+++ b/app/cwm/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.44 2010/04/11 16:51:26 okan Exp $
+ * $Id: group.c,v 1.45 2010/06/28 12:29:04 okan Exp $
*/
#include <sys/param.h>
@@ -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);