Fix support for gnome-terminal

Fixes #25.
break
noctuid 8 years ago
parent 4661ea84af
commit 45e9d72711

@ -513,6 +513,11 @@ create_win_return_wid() {
fi fi
visible_wid=false visible_wid=false
while : ; do 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") wids=$(xdotool search --pid "$pid")
if [[ -n "$wids" ]]; then if [[ -n "$wids" ]]; then
while read -r wid; do while read -r wid; do

Loading…
Cancel
Save