From 57a3a881a30a4408d0a36e60a0c550b41f061815 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 26 May 2020 16:28:12 +0100 Subject: [PATCH] bin/wakey.sh: Cope if `_NET_ACTIVE_WINDOW' is `CARDINAL' rather than `WINDOW'. Helpfully, `xprop' shows the value in an entirely different way in that case. And `xpra' uses `CARDINAL'. --- bin/wakey.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/wakey.sh b/bin/wakey.sh index 469b3cf..bab1cdf 100644 --- a/bin/wakey.sh +++ b/bin/wakey.sh @@ -31,7 +31,7 @@ __wakey_precmd () { case $IGNORE_WINDOW_CHECK in t) ;; *) - win=$(xprop -root _NET_ACTIVE_WINDOW | sed 's/^.*# //') + win=$(xprop -root _NET_ACTIVE_WINDOW | sed 's/^.*[#=] //') if [[ $win = *"not found." ]] || (( win == WINDOWID )); then suppress=t else -- 2.11.0