bin/wakey.sh: Treat a zero `active window' as being some foreign thing.
[profile] / bin / wakey.sh
index bab1cdf..dc46b18 100644 (file)
@@ -34,6 +34,8 @@ __wakey_precmd () {
            win=$(xprop -root _NET_ACTIVE_WINDOW | sed 's/^.*[#=] //')
            if [[ $win = *"not found." ]] || (( win == WINDOWID )); then
              suppress=t
+           elif (( win == 0 )); then
+             :
            else
              for i in $(xwininfo -tree -id $win 2>/dev/null |
                              sed -n '/^ *[0-9]\+ child\(ren\)\?[.:]$/,$ {