I even commented in the commit message that I should have scanned
recursively; I just didn't spot that `xwininfo' would do all of the
heavy lifting for me.
if (( win == WINDOWID )); then
suppress=t
else
if (( win == WINDOWID )); then
suppress=t
else
- for i in $(xwininfo -children -id $win |
+ for i in $(xwininfo -tree -id $win |
sed -n '/^ *[0-9]\+ child\(ren\)\?[.:]$/,$ {
/^ *\(0x[0-9a-f]\+\) (.*$/s//\1/p
}')
sed -n '/^ *[0-9]\+ child\(ren\)\?[.:]$/,$ {
/^ *\(0x[0-9a-f]\+\) (.*$/s//\1/p
}')