diff --git a/tests/mouse-click.py b/tests/mouse-click.py index 9edbff2..216d421 100755 --- a/tests/mouse-click.py +++ b/tests/mouse-click.py @@ -2,9 +2,12 @@ def waitMouseClick(): mouse = open( "/dev/input/mice", "rb" ) + down = False; while True: buf = mouse.read(3) if ((buf[0] & 0x1)==1): + down = True + if (((buf[0] & 0x1)==0) and down): break; mouse.close() diff --git a/tests/slideshow.py b/tests/slideshow.py index 689c5dc..74db8f5 100755 --- a/tests/slideshow.py +++ b/tests/slideshow.py @@ -11,4 +11,4 @@ def waitMouseClick(): os.system("fim *.png -qa -c 'while(1){display;sleep 1;next;}' /dev/null &") waitMouseClick() -os.system("killall fim") +os.system("killall -s 9 fim")