[gtk+/gtk-3-18] Set VirtualBox USB Tablet to GDK_SOURCE_MOUSE



commit ed816e6283b2fd392c1d764d3887ee8def92dfb2
Author: Takao Fujiwara <tfujiwar redhat com>
Date:   Tue Mar 8 22:18:06 2016 +0900

    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

 gdk/x11/gdkdevicemanager-xi2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index c4dbc6f..062cba8 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -430,6 +430,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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]