mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-06 10:00:11 +02:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b854fd424
commit
4479fbfcc1
1 file changed
+4
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user