From 9a45338254fc60b0f235fe9e9ffdd79c3f6a3deb Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Sat, 11 May 2013 08:13:06 +0800 Subject: [PATCH] Misc: Small fix for regex in compton-trans --- bin/compton-trans | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compton-trans b/bin/compton-trans index 6beeabf..d9aafaa 100755 --- a/bin/compton-trans +++ b/bin/compton-trans @@ -125,7 +125,7 @@ if test -z "$wprefix"; then treeout=$(xwininfo -children -frame) else 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 treeout=$(xwininfo -children $wprefix "$window") fi