Skip to content

Instantly share code, notes, and snippets.

@thnikk
Created March 25, 2019 23:19
Show Gist options
  • Save thnikk/92d8ac016c1667d4963735865d487df3 to your computer and use it in GitHub Desktop.
Save thnikk/92d8ac016c1667d4963735865d487df3 to your computer and use it in GitHub Desktop.
prevents evdev passthrough from being captured on guest startup
diff --git a/ui/input-linux.c b/ui/input-linux.c
index 9720333..abb4e04 100644
--- a/ui/input-linux.c
+++ b/ui/input-linux.c
@@ -335,12 +335,6 @@ static void input_linux_complete(UserCreatable *uc, Error **errp)
}
qemu_set_fd_handler(il->fd, input_linux_event, NULL, il);
- if (il->keycount) {
- /* delay grab until all keys are released */
- il->grab_request = true;
- } else {
- input_linux_toggle_grab(il);
- }
QTAILQ_INSERT_TAIL(&inputs, il, next);
il->initialized = true;
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment