X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/1bea7f5c61956746547f44fe8809fb6fb57a2038..41ca057f9068efc944d7a1d77d59b2ed7cc21e17:/bin/wakey.zsh diff --git a/bin/wakey.zsh b/bin/wakey.zsh index 6a848ca..34048c0 100644 --- a/bin/wakey.zsh +++ b/bin/wakey.zsh @@ -36,7 +36,7 @@ __wakey_precmd () { 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 }')