[gtk+] Set VirtualBox USB Tablet to GDK_SOURCE_MOUSE
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Set VirtualBox USB Tablet to GDK_SOURCE_MOUSE
- Date: Tue, 8 Mar 2016 16:12:02 +0000 (UTC)
commit 7822f59a861abe6a29c15823964c7ea1892c265c
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 b314d43..ad6babe 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]