-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
M-S-Tab for menu navigation moves menu selection forward when in 2nd XKB group #861
Comments
Hi @farblos Are you switching the keyboard layout between US ans DE at any point as part of this test? |
@ThomasAdam Sorry, forgot to mention that. Yes, I switch - using the configured toggle Scroll Lock ( So more precisely the test case goes like this:
Plus this does not depend on the language but on the groups: If I make DE group 1 and US group 2, the exact same test case applies. |
I modified function
This results in the following output when a keyboard group (aka. layout) different from the default one is active and when Alt-Tabbing:
where 8200 = 0b10000000001000. Section Xkb State to Core Protocol State Transformation of the "The X Keyboard Extension: Library Specification" says:
Accordingly, when I modify
the modifiers start to work in the non-default keyboard group as well. IMO the keyboard group could be savely ignored among the modifiers as far as Fvwm is concerned. I could provide a PR if solving this is not much more difficult than that ... |
Hi @farblos Send a PR for this, please. |
Working on it. In parallel I try to get more information on these mysterious bits in this post on the Xorg ML. |
To my question
Po Lu replied:
Since keycode and keysym translation functions are not relevant in this particular use case (comparing modifier bits), I'll keep things simple and will indeed just remove these bits in function |
According to section "Xkb State to Core Protocol State Transformation" of the "The X Keyboard Extension: Library Specification", the Xkb-aware server reports group index in bits 13 and 14 of XEvent.xkey.state or XEvent.xbutton.state. This interferes with FVWM's modifier handling as described in fvwmorg#861.
According to section "Xkb State to Core Protocol State Transformation" of the "The X Keyboard Extension: Library Specification", the Xkb-aware server reports group index in bits 13 and 14 of XEvent.xkey.state or XEvent.xbutton.state. This interferes with FVWM's modifier handling as described in #861.
Thanks for reporting your bug here! The following template will help with
giving as much information as possible so that it's easier to diagnose and
fix.
Upfront Information
Please provide the following information by running the command and providing
the output.
fvwm3 --version
)uname -sp
)Expected Behaviour
Menu navigation in the window list with M-S-Tab moves menu selection backward regardless of selected keyboard group.
Actual Behaviour
It moves menu selection forward in 2nd keyboard group, and backward in 1st keyboard group.
Enabling logging
Seemingly no relevant logging generated ...
Steps to Reproduce
Use the following keyboard configuration in
/etc/default/keyboard
(might be different configuration file on other distros):Use the following fvwm config (note that due to development version
ConfigFvwmDefaults
is not active):Then try navigating with M-S-Tab in the window list in both keyboard groups
us
andde
.Not tested.
Does Fvwm3 crash?
No.
Extra Information
The choice of the keyboard group seems to affect only the M-S-Tab binding in menus, not any others. For example, M-S-F1 as defined in the config pops up an XTerm regardless of the current keyboard group.
Setting
IgnoreModifiers
does not help.I could try debugging this issue, but for that I'd appreciate any pointers where to start.
The text was updated successfully, but these errors were encountered: