Hani Benhabiles 0419f78fae input: mouse_set should check input device type.
Otherwise, the index of an input device like a usb-kbd is silently accepted.

(qemu) info mice
  Mouse #2: QEMU PS/2 Mouse
* Mouse #3: QEMU HID Mouse
(qemu) mouse_set 1
(qemu) info mice
  Mouse #2: QEMU PS/2 Mouse
* Mouse #3: QEMU HID Mouse

Also replace monitor_printf() call in do_mouse_set() with error_report() and
adjust error message.

Signed-off-by: Hani Benhabiles <hani@linux.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2014-04-01 10:17:45 +02:00
..
2014-03-26 05:33:02 +01:00
2014-03-12 10:43:16 +01:00
2014-03-10 13:49:44 +01:00
2014-03-10 13:55:25 +01:00
2014-03-11 10:53:17 +00:00
2014-03-18 08:21:24 +01:00
2014-03-10 12:35:04 +01:00