fix: add shift key press in anti-idle loop for OS that ignore mouse movement

This commit is contained in:
2026-05-03 12:10:59 +00:00
parent 3d8ccd30b6
commit 359a0c7636
+4
View File
@@ -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")