~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f3f3f6
)
bin/wakey.sh: Cope if `_NET_ACTIVE_WINDOW' is `CARDINAL' rather than `WINDOW'.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 26 May 2020 15:28:12 +0000
(16:28 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 26 May 2020 15:28:12 +0000
(16:28 +0100)
Helpfully, `xprop' shows the value in an entirely different way in that
case. And `xpra' uses `CARDINAL'.
bin/wakey.sh
patch
|
blob
|
blame
|
history
diff --git
a/bin/wakey.sh
b/bin/wakey.sh
index
469b3cf
..
bab1cdf
100644
(file)
--- 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