mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-28 10:52:02 +00:00
[client] spice: fix missing scancode translation for key up
This commit is contained in:
@@ -1189,8 +1189,12 @@ int spiceThread(void * arg)
|
||||
for(int scancode = 0; scancode < KEY_MAX; ++scancode)
|
||||
if (g_state.keyDown[scancode])
|
||||
{
|
||||
const uint32_t ps2 = linux_to_ps2[scancode];
|
||||
if (ps2 && purespice_keyUp(ps2))
|
||||
g_state.keyDown[scancode] = false;
|
||||
purespice_keyUp(scancode);
|
||||
else
|
||||
DEBUG_ERROR("Failed to release key %d during SPICE shutdown",
|
||||
scancode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user