From 4479fbfcc1f7c29b41bdbc04cc4e4f61b0d3e759 Mon Sep 17 00:00:00 2001 From: DeeJanuz <45082401+DeeJanuz@users.noreply.github.com> Date: Thu, 1 Oct 2026 17:01:31 -0600 Subject: [PATCH] Input relay: typing with the pointer helper down no longer ends the relay Typing on a pass-through keyboard tells the helper "typing". With the helper not running (SteamVR off), that send raised ConnectionRefusedError and the relay exited, dropping every grab until systemd restarted it. Co-Authored-By: Claude Opus 5.5 --- input/input-relay.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/input/input-relay.py b/input/input-relay.py index e4fb462..0b5ae0e 100755 --- a/input/input-relay.py +++ b/input/input-relay.py @@ -1152,7 +1152,10 @@ def main(): if node.role == "passthrough" and etype == EV_KEY: if value == 1 and code < BTN_MISC and now - last_typing >= 0.25: last_typing = now - screens_sock.sendto(b"typing", HELPER) + try: + screens_sock.sendto(b"typing", HELPER) + except OSError: + pass # helper not running (SteamVR not running) to_screens(code, value) if node.grabbed and code < BTN_MISC and value in (0, 1): share_key(node, code, value)