From 45e9d72711d296ed63e9f9df8c3f6c73fd38d95c Mon Sep 17 00:00:00 2001 From: noctuid Date: Mon, 19 Dec 2016 13:14:46 -0500 Subject: [PATCH] Fix support for gnome-terminal Fixes #25. --- tdrop | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tdrop b/tdrop index 7b94ae5..d2ea7a2 100755 --- a/tdrop +++ b/tdrop @@ -513,6 +513,11 @@ create_win_return_wid() { fi visible_wid=false while : ; do + if [[ $program == gnome-terminal ]]; then + # only 1 pid; changes at some point after first run + # actual process name for me is gnome-terminal- + pid=$(pgrep gnome-terminal) + fi wids=$(xdotool search --pid "$pid") if [[ -n "$wids" ]]; then while read -r wid; do