Correct typo causing movement along one axis only to not be detected
This commit is contained in:
parent
d0b162c6f2
commit
823bad796c
@ -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))
|
||||
|
||||
|
Reference in New Issue
Block a user