From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNgS9-0001hN-7z for qemu-devel@nongnu.org; Wed, 12 Mar 2014 06:32:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNgS2-0004C9-3u for qemu-devel@nongnu.org; Wed, 12 Mar 2014 06:32:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNgS1-0004Bs-Jo for qemu-devel@nongnu.org; Wed, 12 Mar 2014 06:31:53 -0400 From: Gerd Hoffmann Date: Wed, 12 Mar 2014 11:31:48 +0100 Message-Id: <1394620308-5916-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] input: activate legacy kbd List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Anthony Liguori Restores traditional behavior: Keyboard input will be routed to the most recently added keyboard. Without this all kbd input goes to the ps/2 keyboard, even if you add a usb keyboard to your guest. Signed-off-by: Gerd Hoffmann --- ui/input-legacy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/input-legacy.c b/ui/input-legacy.c index 7dc486b..1aa2605 100644 --- a/ui/input-legacy.c +++ b/ui/input-legacy.c @@ -333,6 +333,7 @@ QEMUPutKbdEntry *qemu_add_kbd_event_handler(QEMUPutKBDEvent *func, void *opaque) entry->opaque = opaque; entry->s = qemu_input_handler_register((DeviceState *)entry, &legacy_kbd_handler); + qemu_input_handler_activate(entry->s); return entry; } -- 1.8.3.1