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 142833 - gdm mousebutton listeners can't detect XInput events
gdm mousebutton listeners can't detect XInput events
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
unspecified
Other Linux
: Normal major
: ---
Assigned To: bill.haneman
GDM maintainers
AP1 WS
Depends on:
Blocks:
 
 
Reported: 2004-05-20 12:54 UTC by bill.haneman
Modified: 2005-02-14 20:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to init XInput if present, and listen to XInput buttons and keys; also parse <Switch1> etc in AccessMouseKeyEvents (18.91 KB, patch)
2004-06-09 19:51 UTC, bill.haneman
needs-work Details | Review
improved patch; better linking (include X_EXTRA_LIBS) and better gesture matching for XInput (26.35 KB, patch)
2004-06-20 13:34 UTC, bill.haneman
none Details | Review

Description bill.haneman 2004-05-20 12:54:57 UTC
gdm mousebutton gesture listeners aren't currently listening for XInput events.
 Most GOK users will actually be interacting with the system via XInput
alternate mouse drivers (not connected/chained to the core pointer), in order to
avoid conflicts with the underlying GUI.  The current gesture listeners can't be
used to detect such gestures, thus they don't work for most GOK users.
Comment 1 bill.haneman 2004-06-01 17:09:48 UTC
escalating login issues
Comment 2 bill.haneman 2004-06-09 19:51:54 UTC
Created attachment 28524 [details] [review]
patch to init XInput if present, and listen to XInput buttons and keys; also parse <Switch1> etc in AccessMouseKeyEvents
Comment 3 bill.haneman 2004-06-09 19:55:34 UTC
Patch appears to unblock the situation for GOK users; it doesn't currently
distinguish between non-core XINput devices, but that's OK for almost all use
cases... i.e. if one defines a gesture based on "button1" from an XInput device,
then it can be activated from any non-core XInput device.  This is OK because
for a GOK user, the XInput device which GOK is configured to listen to is almost
certainly going to be the one that the user's switch is connected to at login
time.  Actually passing the device ID of the device which completed the gesture,
as a param to the gesture-listener-launched program, can be considered a
lower-priority RFE.

I have tested the patch with various switch combinations and GOK.
Comment 4 bill.haneman 2004-06-09 19:58:10 UTC
Note that the patch also includes a check for XInput in configure.in, cribbed
from GOK.  The GOK test has been tested by various people on different
platforms, so I think it should be safe, but you might want to peruse it George.

BTW George, what indenting style do you want to use in the gesture listener
code?  The stuff that's there seems to use a modified 'linux' style, with
opening brackets on the same line as the conditional... do you want me to adhere
to that in keymouselistener.c? (it seems to make me more error prone as I am
used to brackets on separate lines)
Comment 5 bill.haneman 2004-06-09 20:47:14 UTC
BTW I am aware of a small bug in the other patch - #define HAVE_XINPUT was
erroneously retained hard-coded in keymouselistener.c, and the #ifdef
HAVE_XINPUT include of "XInput.h" should come after #include <config.h>
Comment 6 bill.haneman 2004-06-18 14:46:10 UTC
Comment on attachment 28524 [details] [review]
patch to init XInput if present, and listen to XInput buttons and keys; also parse <Switch1> etc in AccessMouseKeyEvents

patch is not always linking in the libXi.so (XInput lib) as it should...
revision to follow.
Comment 7 bill.haneman 2004-06-20 13:34:34 UTC
Created attachment 28881 [details] [review]
improved patch; better linking (include X_EXTRA_LIBS) and better gesture matching for XInput
Comment 8 John Crawley 2004-08-26 08:39:32 UTC
Awaiting to confirm fix in JDS Rel3 Build17
Comment 9 bill.haneman 2004-08-26 10:16:29 UTC
John: it won't be in JDS yet, the patch isn't in CVS nor JDS patches yet.  Try b18.
Comment 10 Calum Benson 2004-10-21 16:42:57 UTC
Apologies for spam-- ensuring Sun a11y team are cc'ed on all current a11y bugs.
 Filter on "SUN A11Y SPAM" to ignore.
Comment 11 Brian Cameron 2005-02-14 20:16:44 UTC
Patch added to CVS head.
Comment 12 bill.haneman 2005-02-14 20:26:57 UTC
thanks Brian.