]> git.proxmox.com Git - mirror_qemu.git/commitdiff
vmmouse: put it into the 'input' category
authorGan Qixin <ganqixin@huawei.com>
Mon, 30 Nov 2020 08:36:21 +0000 (16:36 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Sat, 20 Feb 2021 11:36:19 +0000 (12:36 +0100)
The category of the vmmouse device is not set, put it into the 'input'
category.

Signed-off-by: Gan Qixin <ganqixin@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20201130083630.2520597-4-ganqixin@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/i386/vmmouse.c

index a3556438f0ff67db25a4f278c54c0aa687ebf100..df4798f502849579105ef166fe9a5db6c1629477 100644 (file)
@@ -308,6 +308,7 @@ static void vmmouse_class_initfn(ObjectClass *klass, void *data)
     dc->reset = vmmouse_reset;
     dc->vmsd = &vmstate_vmmouse;
     device_class_set_props(dc, vmmouse_properties);
+    set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
 }
 
 static const TypeInfo vmmouse_info = {