fix: add shift key press in anti-idle loop for OS that ignore mouse movement
This commit is contained in:
@@ -94,6 +94,10 @@ def _anti_idle_loop():
|
||||
env=env, capture_output=True, timeout=5,
|
||||
)
|
||||
toggle = not toggle
|
||||
subprocess.run(
|
||||
["xdotool", "key", "--window", win_id, "--clearmodifiers", "shift"],
|
||||
env=env, capture_output=True, timeout=5,
|
||||
)
|
||||
log.debug("anti_idle mousemove window=%s pos=%s,%s", win_id, x, y)
|
||||
else:
|
||||
log.debug("anti_idle: xfreerdp window not found")
|
||||
|
||||
Reference in New Issue
Block a user