wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit b72f13580c35d9dfdd6f114f2f7a035d66404c2c
parent a8e7215e124fe8ef32a3221fbd4a469ea796c651
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Wed, 15 Mar 2006 10:51:57 +0100

fixed float forcing as well


Diffstat:
cmd/wm/client.c | 12+++---------
cmd/wm/rule.c | 13-------------
2 files changed, 3 insertions(+), 22 deletions(-)

diff --git a/cmd/wm/client.c b/cmd/wm/client.c @@ -338,18 +338,12 @@ manage_client(Client *c) cext_strlcpy(c->tag[0], t->name, sizeof(c->tag[0])); c->ntag++; } - { - unsigned int i; - for(i = 0; i < c->ntag; i++) - fprintf(stderr, "(a) c->tag[%d] -> %s\n", i, c->tag[i]); + else if((c->ntag == 1) && !strncmp(c->tag[0], "~", 2)) { + cext_strlcpy(c->tag[1], t->name, sizeof(c->tag[1])); + c->ntag++; } update_tags(); - { - unsigned int i; - for(i = 0; i < c->ntag; i++) - fprintf(stderr, "(b) c->tag[%d] -> %s\n", i, c->tag[i]); - } } static int diff --git a/cmd/wm/rule.c b/cmd/wm/rule.c @@ -129,19 +129,6 @@ match_tags(Client *c) return; rule = parse(def.rules, &n); - { - unsigned int i,j; - for(i=0;i<n;i++) { - fprintf(stderr, "rule[%d].regex -> %s\n", i, rule[i].regex); - for(j=0;j<rule[i].ntag;j++) - fprintf(stderr, "rule[%d].tag[%d] -> %s\n", i, j, rule[i].tag[j]); - } - } match(rule, n, c, c->name); match(rule, n, c, c->classinst); - { - unsigned int i; - for(i = 0; i < c->ntag; i++) - fprintf(stderr, "c->tag[%d] -> %s\n", i, c->tag[i]); - } }