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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user