commit 7a9bb1d415eb07e590a4892716b9ac8a4ddb43be
parent 31a948f5e394ed280d808d8445a63316a9aed5d8
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Sat, 11 Mar 2006 10:09:04 +0100
dropping leading whitespaces in match_rule for tags
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/cmd/wm/event.c b/cmd/wm/event.c
@@ -153,6 +153,8 @@ handle_configurerequest(XEvent *e)
wc.border_width = 1;
wc.sibling = None;
wc.stack_mode = ev->detail;
+ if(f->area->tag != tag[sel])
+ f->rect.x += 2 * rect.width;
XConfigureWindow(dpy, c->framewin, ev->value_mask, &wc);
configure_client(c);
}
diff --git a/cmd/wm/rule.c b/cmd/wm/rule.c
@@ -77,6 +77,8 @@ parse(char *data, unsigned int *n)
i++;
}
else {
+ if(!strlen(tags) && (*p == ' ' || *p == '\t'))
+ continue; /* skip prefixed whitespaces */
*tags = *p;
tags++;
}