Skip to content

Instantly share code, notes, and snippets.

@smoogipoo
smoogipoo / qemu-dont-capture-on-start.patch
Created September 18, 2023 08:22 — forked from thnikk/qemu-dont-capture-on-start.patch
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 */