added update for xdotool to prevent keyboard from going stuck after long session. explained in readme that the DXVK version is replaced

This commit is contained in:
2026-07-03 12:10:33 +01:00
parent 2024f4cbe0
commit 53787723c1
3 changed files with 38 additions and 15 deletions
+9
View File
@@ -182,6 +182,15 @@ function releaseControl(entry, reason) {
entry.ws.send(JSON.stringify({ type: 'control_released', reason }));
}
// Tell gst_agent to release all held keys and reset X11 modifier state.
// Without this, stuck keys (shift/ctrl/w/etc.) persist across controller
// handoffs and eventually corrupt xdotool's input state, requiring a
// full container restart to recover.
const agent = [...agentSessions.values()][0];
if (agent && agent.agentWs && agent.agentWs.readyState === WebSocket.OPEN) {
agent.agentWs.send(JSON.stringify({ type: 'release_keys' }));
}
if (controlQueue.length > 0) {
const next = controlQueue.shift();
applyController(next);