diff options
Diffstat (limited to 'robot')
| -rw-r--r-- | robot/robot.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/robot/robot.sh b/robot/robot.sh index c5cc33d..f901b67 100644 --- a/robot/robot.sh +++ b/robot/robot.sh @@ -71,11 +71,12 @@ function wait_emacs { function find_bot { for i in `seq 1 20`; do - window_id=`xdotool search --name "emacs-bot"` + window_id=`xdotool search --onlyvisible --name "emacs-bot" 2> /dev/null` if [ -z "$window_id" ] then sleep 0.1 else + echo "Found Emacs-Bot on $i-th poll" return fi done |
