branch: elpa/org-drill
commit d6d940c9c5a5efa18d7cc8d872b54ffb2f9a023b
Author: Phillip Lord <[email protected]>
Commit: Phillip Lord <[email protected]>

    Improve poll
---
 robot/robot.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/robot/robot.sh b/robot/robot.sh
index c5cc33da5b..f901b6770d 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

Reply via email to