Set VirtualBox USB Tablet to GDK_SOURCE_MOUSE

The virtual host assigns the name of the mouse device to
"VirtualBox USB Tablet" in VirtualBox and we'd use that device as mouse.
If not, GtkTooltip is not enabled.

https://bugzilla.gnome.org/show_bug.cgi?id=763017
This commit is contained in:
Takao Fujiwara 2016-03-08 22:18:06 +09:00 committed by Matthias Clasen
parent 6fdf1e4462
commit 7822f59a86

View File

@ -432,6 +432,7 @@ create_device (GdkDeviceManager *device_manager,
!strstr (tmp_name, "pointer") &&
!strstr (tmp_name, "qemu usb tablet") &&
!strstr (tmp_name, "spice vdagent tablet") &&
!strstr (tmp_name, "virtualbox usb tablet") &&
has_abs_axes (display, dev->classes, dev->num_classes))
input_source = GDK_SOURCE_TOUCHSCREEN;
else