1
Fork 0

Correct typo causing movement along one axis only to not be detected

This commit is contained in:
RunasSudo 2019-11-21 23:44:49 +11:00
parent d0b162c6f2
commit 823bad796c
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ async def mousemove():
result = {x[:x.index(':')]: int(x[x.index(':')+1:]) for x in stdout.decode('utf-8').strip().split(' ')}
dx, dy = result['x'] - MOUSEHOLD_X, result['y'] - MOUSEHOLD_Y
if dx != 0 and dy != 0:
if dx != 0 or dy != 0:
print(dx, dy, file=sys.stderr)
print('DISPLAY=:0 xdotool mousemove_relative -- {} {}'.format(dx, dy))