GNOME Bugzilla – Bug 627084
XTest won't work correctly under left-handed mouse orientation
Last modified: 2010-09-22 14:11:54 UTC
When changing the "Mouse Orientation" to "Left-handed" in the gnome-mouse-properties configuration dialog, all slave devices will get their button map changed to "3 2 1 ...". While this definitely the correct thing to do for physical devices, it leads to programs that send out XTest requests not working correctly: If the program intends for a left click (button 1) to be emulated, this will get translated to a right-click. Gnome should test for the XI_PROP_XTEST_DEVICE property (defined in <xorg/xserver-properties.h>) and not change the button map if the property is defined. See also https://sourceforge.net/apps/trac/easystroke/ticket/86 I've only tested this on 2.30.2, apologies if the issue is fixed in git. Thank you
We can't use XI_PROP_XTEST_DEVICE, it's not exported, instead we'll just check for the device name.
commit 3fb5bf46fdf9d47afc13c5ab00063526cd45f1e8 Author: Bastien Nocera <hadess@hadess.net> Date: Wed Sep 22 15:09:17 2010 +0100 mouse: Don't switch mouse buttons for XTest devices Fixes fake events generated by applications being the wrong button. https://bugzilla.gnome.org/show_bug.cgi?id=627084