-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--ignore-buttons does not work with remapped buttons #46
Comments
Thanks! I think we need to look into what xinput does under the good, and find out if we can query this mapping through some API in Xinput2. If so there shouldn't be any reason why we can't respect the mapping. |
Relevant code from xinput: https://cgit.freedesktop.org/xorg/app/xinput/tree/src/buttonmap.c The button map is actually device specific. We can use Edit: Also, just for reference, here's the XI2 spec: https://www.x.org/releases/X11R7.7/doc/inputproto/XI2proto.txt |
Approach-wise, we can do the following:
I think for |
Discussion continued from #40. To summarize,
--ignore-buttons
does not consider remappings (e.g. made withxinput --set-button-map
). If I set a button that is initially 1 to be anything other than 1,--ignore-buttons <new number>
does not work. Only--ignore-button <original number>
works.I checked to confirm and the event's
evtype
isXI_RawButtonPress
and the event'sdetail
is always the original button number (e.g.1
). I'm not sure if this means it's impossible to do anything about it. Let me know if there's any other specific information I can provide.The text was updated successfully, but these errors were encountered: