After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 627084 - XTest won't work correctly under left-handed mouse orientation
XTest won't work correctly under left-handed mouse orientation
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: plugins
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2010-08-16 20:27 UTC by Tom Jaeger
Modified: 2010-09-22 14:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tom Jaeger 2010-08-16 20:27:59 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
Comment 1 Bastien Nocera 2010-09-22 14:10:46 UTC
We can't use XI_PROP_XTEST_DEVICE, it's not exported, instead we'll just check for the device name.
Comment 2 Bastien Nocera 2010-09-22 14:11:35 UTC
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