Skip to content

Commit

Permalink
Fixed hanging keys when using Windows remote desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert committed Mar 7, 2023
1 parent bc2bb27 commit 8d23ca6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/windows/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ namespace {
if (!kbd.scanCode || injected)
return false;

// ignore remote desktop input
if (kbd.dwExtraInfo == 0x4321DCBA)
return false;

const auto input = get_key_event(wparam, kbd);
if (input.key == Key::none) {
verbose("0x%X", kbd.scanCode);
Expand Down

0 comments on commit 8d23ca6

Please sign in to comment.