]> git.proxmox.com Git - mirror_qemu.git/commit - ui/input.c
input: send kbd+mouse events only to running guests.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 15 Feb 2012 08:15:37 +0000 (09:15 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 17 Feb 2012 17:02:55 +0000 (11:02 -0600)
commit99c7f87826337fa81f2f0f9baa9ca0a44faf90e9
treeb1d566fafc30056e45d845a980bd7fda3e090393
parentaa24822bdc7c4e74afbc6fa1324b01cf067da7cb
input: send kbd+mouse events only to running guests.

Trying to interact with a stopped guest will queue up the events,
then send them all at once when the guest continues running, with
a high chance to have them cause unwanted actions.

Avoid that by only injecting the input events only when the guest
is in running state.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
input.c