aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2010-06-28 12:29:04 +0000
committerokan2010-06-28 12:29:04 +0000
commit72e2e65af9e171a54b942def3e3c6007cf49a126 (patch)
treeff4d52b9e864a837a97ccd8a2c7970e26c44f2ea
parentec8920158f9b3603f061c0d354c9b77cb6ec69f7 (diff)
downloadcwm-72e2e65af9e171a54b942def3e3c6007cf49a126.tar.gz
fix window name and class to match cwmrc(5); from Holger Mikolon - thanks!
ok oga@
Diffstat (limited to '')
-rw-r--r--group.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/group.c b/group.c
index 0f6a9fa..de2e2b6 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.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);