Skip to content

Commit

Permalink
Don't output xprop error messages
Browse files Browse the repository at this point in the history
Ignore errors when checking for visibility. Addresses #14.
  • Loading branch information
noctuid committed Mar 23, 2016
1 parent 9b4f0fe commit 8cad7fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tdrop
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8cad7fb

Please sign in to comment.