Don't output xprop error messages

Ignore errors when checking for visibility. Addresses #14.
break
noctuid 9 years ago
parent 9b4f0fe713
commit 8cad7fb8eb

@ -521,7 +521,7 @@ wid_toggle() {
if [[ -n $wid ]]; then
visibility=$(get_visibility "$wid")
# sometimes xwininfo will still report a window as existing hence xprop check
if [[ -z $visibility ]] || [[ -z $(xprop -id "$wid") ]]; then
if [[ -z $visibility ]] || [[ -z $(xprop -id "$wid" 2> /dev/null) ]]; then
# window no longer exists
exists=false
> /tmp/tdrop/"$program$num"

Loading…
Cancel
Save