dropping leading whitespaces in match_rule for tags

This commit is contained in:
Anselm R. Garbe 2006-03-11 10:09:04 +01:00
parent 31a948f5e3
commit 7a9bb1d415
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -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++;
}