From a7a317d2cadbf193416b7b74ea1928c5a16bdd31 Mon Sep 17 00:00:00 2001 From: noctuid Date: Tue, 26 Jan 2016 14:08:36 -0500 Subject: [PATCH] Don't output xwininfo's errors for nonexistent WIDs --- tdrop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdrop b/tdrop index b481c74..1b83836 100755 --- a/tdrop +++ b/tdrop @@ -349,7 +349,7 @@ get_class_name() { } get_visibility() { - xwininfo -id "$1" | awk '/Map State/ {print $3}' + xwininfo -id "$1" 2> /dev/null | awk '/Map State/ {print $3}' } map_pre_command() {