From 56366becd663ec64162bb01ca33a85d70e549bdd Mon Sep 17 00:00:00 2001 Message-Id: <56366becd663ec64162bb01ca33a85d70e549bdd.1717618300.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 17 May 2020 22:24:48 +0100 Subject: [PATCH] bin/wakey.sh: Cope if the `_NET_ACTIVE_WINDOW' property is missing. Organization: Straylight/Edgeware From: Mark Wooding --- bin/wakey.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/wakey.sh b/bin/wakey.sh index c11aef5..469b3cf 100644 --- a/bin/wakey.sh +++ b/bin/wakey.sh @@ -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 | -- [mdw]