mirror of
https://github.com/yshui/picom.git
synced 2024-11-18 13:55:36 -05:00
Misc: Small fix for regex in compton-trans
This commit is contained in:
parent
1cb6058732
commit
9a45338254
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ if test -z "$wprefix"; then
|
||||||
treeout=$(xwininfo -children -frame)
|
treeout=$(xwininfo -children -frame)
|
||||||
else
|
else
|
||||||
test "$wprefix" = '-id' \
|
test "$wprefix" = '-id' \
|
||||||
&& ! echo "$window" | grep -q '^\(0x\)\?[0-9a-fA-F]\+$' \
|
&& ! echo "$window" | grep -Eiq '^[[:space:]]*(0x[[:xdigit:]]+|[[:digit:]]+)[[:space:]]*$' \
|
||||||
&& echo 'Bad window ID.' && exit 1
|
&& echo 'Bad window ID.' && exit 1
|
||||||
treeout=$(xwininfo -children $wprefix "$window")
|
treeout=$(xwininfo -children $wprefix "$window")
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue