when sending CTRL+ALT+SHIFT+Q key sequence for disconnecting from the remote host, always send a keydown event to avoid leaving the remote host keyboard in key_UP state. (seen with Geforce Experience 3.17)

This commit is contained in:
Albert Andaluz 2019-12-03 16:29:56 +01:00 committed by Iwan Timmer
parent ecf09e8907
commit fe1c203b10

View File

@ -229,6 +229,10 @@ static bool evdev_handle_event(struct input_event *ev, struct input_device *dev)
// Quit the stream if all the required quit keys are down
if ((dev->modifiers & ACTION_MODIFIERS) == ACTION_MODIFIERS &&
ev->code == QUIT_KEY && ev->value != 0) {
short code = 0x80 << 8 | keyCodes[ev->code];
LiSendKeyboardEvent(code, KEY_ACTION_DOWN, 0);
usleep(1000000);
return false;
}