bin/wakey.sh: Cope if the `_NET_ACTIVE_WINDOW' property is missing.
[profile] / bin / wakey.sh
index c11aef5..469b3cf 100644 (file)
@@ -32,7 +32,7 @@ __wakey_precmd () {
          t) ;;
          *)
            win=$(xprop -root _NET_ACTIVE_WINDOW | sed 's/^.*# //')
-           if (( win == WINDOWID )); then
+           if [[ $win = *"not found." ]] || (( win == WINDOWID )); then
              suppress=t
            else
              for i in $(xwininfo -tree -id $win 2>/dev/null |