mirror of https://github.com/yshui/picom.git
allow dots (.) in condition targets
This commit is contained in:
parent
9366f67795
commit
6bf0478d29
4
src/c2.c
4
src/c2.c
|
@ -579,8 +579,8 @@ static int c2_parse_target(const char *pattern, int offset, c2_ptr_t *presult) {
|
||||||
|
|
||||||
// Copy target name out
|
// Copy target name out
|
||||||
int tgtlen = 0;
|
int tgtlen = 0;
|
||||||
for (; pattern[offset] &&
|
for (; pattern[offset] && (isalnum((unsigned char)pattern[offset]) ||
|
||||||
(isalnum((unsigned char)pattern[offset]) || '_' == pattern[offset]);
|
'_' == pattern[offset] || '.' == pattern[offset]);
|
||||||
++offset) {
|
++offset) {
|
||||||
++tgtlen;
|
++tgtlen;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue