From 24efb86420ae973c37cc223707ee98e3d3253d4e Mon Sep 17 00:00:00 2001 From: angelic-sedition Date: Sat, 14 Feb 2015 20:23:36 -0500 Subject: [PATCH] fix auto-show cancel --- tdrop | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tdrop b/tdrop index 38608e3..2c172ca 100755 --- a/tdrop +++ b/tdrop @@ -164,9 +164,9 @@ wid_toggle() { fi xdotool windowmap "$wid" float_post_command + maybe_cancel_auto_show "$wid" else xdotool windowunmap "$wid" - maybe_cancel_auto_show "$wid" fi else # make it @@ -205,9 +205,8 @@ auto_show() { } maybe_cancel_auto_show() { - auto_hidden_wid=$(< /tmp/tdrop/auto_hidden/wid) - if $cancel_auto_show && [[ $1 == "$auto_hidden_wid" ]]; then - > /tmp/auto_hidden_terminal/wid + if $cancel_auto_show && [[ $1 == "$(< /tmp/tdrop/auto_hidden/wid)" ]]; then + > /tmp/tdrop/auto_hidden/wid fi }