fix: anti-idle click+shift every 60s

This commit is contained in:
2026-05-04 12:50:16 +00:00
parent d7c3b35502
commit d8f9f4c87f
+4
View File
@@ -111,6 +111,10 @@ def _anti_idle_loop():
["xdotool", "click", "--window", win_id, "1"], ["xdotool", "click", "--window", win_id, "1"],
env=env, capture_output=True, timeout=5, env=env, capture_output=True, timeout=5,
) )
subprocess.run(
["xdotool", "key", "--window", win_id, "--clearmodifiers", "shift"],
env=env, capture_output=True, timeout=5,
)
toggle = not toggle toggle = not toggle
log.debug("anti_idle click window=%s pos=%s,%s", win_id, x, y) log.debug("anti_idle click window=%s pos=%s,%s", win_id, x, y)
else: else: