Add workaround to support urxvt with tabbed plugin

Fixes #54.
performance
Fox Kiester 5 years ago
parent 198795c0d2
commit 89d2e4ffce
No known key found for this signature in database
GPG Key ID: 316E205D6017DBFF

@ -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"
}

Loading…
Cancel
Save