summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-12-15 03:23:12 +0200
committerJasmine Hassan <[email protected]>2012-12-15 07:04:12 +0200
commit753cac019e70eb345fd9d7445f5ed3d3adc146c4 (patch)
tree0d34b552945b04340abaf4c402b788a34665b604
parent878e3bf6c86782e527c51879021c671b9bbe38d9 (diff)
downloadmate-settings-daemon-753cac019e70eb345fd9d7445f5ed3d3adc146c4.tar.bz2
mate-settings-daemon-753cac019e70eb345fd9d7445f5ed3d3adc146c4.tar.xz
[mouse] Don't switch mouse buttons for XTest devices
Fix fake events generated by applications being the wrong button. https://bugzilla.gnome.org/show_bug.cgi?id=627084
-rw-r--r--plugins/mouse/msd-mouse-manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mouse/msd-mouse-manager.c b/plugins/mouse/msd-mouse-manager.c
index 3e6381a..fe89da2 100644
--- a/plugins/mouse/msd-mouse-manager.c
+++ b/plugins/mouse/msd-mouse-manager.c
@@ -320,6 +320,7 @@ set_xinput_devices_left_handed (gboolean left_handed)
if ((device_info[i].use == IsXPointer) ||
(device_info[i].use == IsXKeyboard) ||
+ (g_strcmp0 ("Virtual core XTEST pointer", device_info[i].name) == 0) ||
(!xinput_device_has_buttons (&device_info[i])))
continue;