chiark / gitweb /
bin/wakey.sh: Cope if the `_NET_ACTIVE_WINDOW' property is missing.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 17 May 2020 21:24:48 +0000 (22:24 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 17 May 2020 21:24:48 +0000 (22:24 +0100)
bin/wakey.sh

index c11aef5659e522d430de2d058cf8a74d19ca9c40..469b3cfb1046392e92646937089644f795347935 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 |