summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-03-11 14:08:31 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-03-12 10:43:16 +0100
commit7f5e07d9b36467a7ce84ecf57623df561910c181 (patch)
tree757c5dd0d54d18ebc848c7989fc33294960ad2b6 /ui
parent239618707637ec87eba8c452d2b2f75dc5ca20c7 (diff)
downloadqemu-7f5e07d9b36467a7ce84ecf57623df561910c181.tar.gz
input: activate legacy kbd
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 <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/input-legacy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/input-legacy.c b/ui/input-legacy.c
index 7dc486b8ac..1aa2605b75 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;
}