From fe1c203b10dbc2f4fb1014eee8ddd59764f73f16 Mon Sep 17 00:00:00 2001 From: Albert Andaluz Date: Tue, 3 Dec 2019 16:29:56 +0100 Subject: [PATCH] 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) --- src/input/evdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/input/evdev.c b/src/input/evdev.c index 087e644..bb46f7b 100644 --- a/src/input/evdev.c +++ b/src/input/evdev.c @@ -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; }