-
Notifications
You must be signed in to change notification settings - Fork 84
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
Fix a mouse binding for non english keymap #404
Fix a mouse binding for non english keymap #404
Conversation
IMHO it does not matter, bitwise operators are used. For non english keymap "state" returns other value. Therefore, the "state" must be converted to the ASCII character. |
What are the other things showing up in |
I'm wrong. Need further study of the problem. |
I have not found a key symbol for state "0x2000". I added masks. Constants for these bits don't exist in file "X.h" |
I wonder if this is related to mouse buttons instead of the keyboard perhaps (do you have a mouse with more than 5 buttons)? It seems strange that the mask would be I think this is probably an ok fix, considering these values seem in line with what X11 defines for mouse masks and it doesn't appear to define anything higher than Button5. In any case, would you mind squashing the first commit? |
I do not mind. I have a notebook LENOVO ThinkPad S540 without mouse. I think that bits 1<<13 and 1<<14 is number of keymap in Option "XkbLayout" us,ru". I did not have time to check it out. |
That's right. A maximum of four working layouts. |
dfba844
to
3572cb8
Compare
Add masks (1 << 13) and (1 << 14)
Thanks! |
No description provided.