I don't care about the error here: if `xwininfo' fails, then all that
happens is that I miss some (or all) of the window-ids, which is fine by
me. In particular, if this happens with the terminal window, then I've
got nothing to complain into anyway.
if (( win == WINDOWID )); then
suppress=t
else
- for i in $(xwininfo -tree -id $win |
+ for i in $(xwininfo -tree -id $win 2>/dev/null |
sed -n '/^ *[0-9]\+ child\(ren\)\?[.:]$/,$ {
/^ *\(0x[0-9a-f]\+\) (.*$/s//\1/p
}')