[fix] restore remote input for elevated Windows apps

This commit is contained in:
dijunkun
2026-10-09 16:02:27 +08:00
parent a06ed5806a
commit 5a7e816fb7
5 changed files with 53 additions and 11 deletions
@@ -404,8 +404,11 @@ void PeerEventHandler::OnReceiveDataBuffer(
SetLastError(ERROR_SUCCESS);
const bool sent = runtime->devices_.SendMouseCommand(
remote_action, runtime->selected_display_);
const DWORD error = GetLastError();
const bool blocked =
error == ERROR_ACCESS_DENIED || error == ERROR_GEN_FAILURE;
return DesktopInputResult{
sent, IsDesktopTransitionInputError(GetLastError())};
sent, IsDesktopTransitionInputError(error) || blocked, blocked};
},
[&]() -> DesktopInputResult {
int absolute_x = 0;