From 89d2e4ffce26a3c6eaff52095dc66e682b4af6f9 Mon Sep 17 00:00:00 2001 From: Fox Kiester Date: Sat, 16 Feb 2019 10:05:19 -0500 Subject: [PATCH] Add workaround to support urxvt with tabbed plugin Fixes #54. --- tdrop | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tdrop b/tdrop index 78fc810..b4587e0 100755 --- a/tdrop +++ b/tdrop @@ -563,6 +563,14 @@ create_win_return_wid() { fi sleep 0.01 done + # workaround for urxvt tabbed plugin using -embed + if [[ $program =~ $urxvt ]] && [[ -n $program_wid ]]; then + maybe_program_wid=$(xprop -id "$program_wid" | \ + awk -F '"' '/-embed/ {print $6}') + if [[ -n $maybe_program_wid ]]; then + program_wid=$maybe_program_wid + fi + fi echo -n "$program_wid" }