-
Notifications
You must be signed in to change notification settings - Fork 621
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
[BUG] constant AltGr modifier on Finnish keyboard layout #1642
Comments
I cannot get the double 'control' key switching to work to reproduce it. Wonder why. |
Also facing the same issue with the |
I need more information on how to reproduce, for me it seems to work, but I have not been able to change keyboard layout using double ctrl. |
Currently on archlinux and I've noticed that |
I'm also on Arch and have libxkbcommon 1.4.1-1. I tried downgrading to 1.4.0-1 but this did not solve the issue. @DaveDavenport If
|
got it to work with that on one laptop (bit trail and error), and it works for me (tm). Ubuntu 20.04, with i3. (did not get it to work on popos or newer ubuntu ) |
I managed to isolate this issue to xkeyboard-config. After downgrading from 2.36-1 (from 2022-06-03) to 2.35.1-1 (from 2022-02-10) and rebooting everything works as it should. Upgrading back to 2.36-1 causes the issue to return. |
Having the same issue here with a different keyboard layout. Interestingly, it looks like the order of the layouts matter.
works fine between both layouts, but
breaks when switching to the second layout. |
im having this same issue! together with custom scripts in my PATH not working when pressing a shortcut in i3, ill see if thats related to xkeyboard-config as well |
Confirming that downgrading xkeyboard-config solved the issue for me. |
same for me, the other issues i had werent related |
same, i confirm that downgrading xkeyboard-config works |
Affected people should report this to the xkeyboard-config tracker . |
This has been reported https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/issues/341 Soon closed because it's not a xkeyboard-config bug. |
That was very unhelpful into solving the issue. SardemFF7 question never answered. (not saying that rofi is not at fault) |
I can see the keycode and modmask that is correct (from what I can see), what I get back from |
@raven2cz you should be able to add info to this issue? and not sure why you think this issue is (going to be) closed. |
according to xkb_state_mod_index_is_active, Mod5 is active when in finish layout and indicated it is consumed .. is this a xkbcommon issue ( I have 0 experience with xkbcommon)? |
Hi, maybe my experience can be useful to debug this problem. |
thanks for the extra information, all information helps. The ordering of layout making a difference seriously confuses me. |
This seems to be relevant to the issue: |
diff --git a/source/xcb.c b/source/xcb.c
index f53aa3a2..f81015f9 100644
--- a/source/xcb.c
+++ b/source/xcb.c
@@ -1257,8 +1257,8 @@ static void main_loop_x11_event_handler_view(xcb_generic_event_t *event) {
gchar *text;
xcb->last_timestamp = xkpe->time;
- text = nk_bindings_seat_handle_key_with_modmask(
- xcb->bindings_seat, NULL, xkpe->state, xkpe->detail,
+ text = nk_bindings_seat_handle_key/*_with_modmask*/(
+ xcb->bindings_seat, NULL, /*xkpe->state,*/ xkpe->detail,
NK_BINDINGS_KEY_STATE_PRESS);
if (text != NULL) {
rofi_view_handle_text(state, text); This helps for me, but no real reasoning yet, just trail and error. |
Inside of this issue There are two points which "maybe" can help. Morgane Glidic discussed this topic. I assume she will understand the given code well. Could you discuss this with her? Second, Benno writes this sentence: "It seems it uses state.compat_state instead of state.mods." Do you have possibility to test the issue now? By the example with |
I did read the topic and that benno remark is not helpful; it has zero explanation, zero reference to documentation nor exists anywhere in rofi/libnkutils/xkbcommon from what I can see. Its an off-the cuff remark that adds nothing. It seems to be an xlib thing, and it was already pointed out rofi does not use that. Given my posts above, I am pretty sure I know what goes wrong and where. By disabling some code (see above patch) it fixes it for me, I just don't understand why that code is originally there. |
Benno makes new comment now. Maybe help? If not, maybe discuss the problem directly with him again. It seems that he wants to coop with it. |
Quick summary for myself: I think the best solution is to change the default to not use the work-around, this will 're-open' #611 but should fix this issue. |
In issue #611 there is a workaround implemented for an issue within xserver: https://bugs.freedesktop.org/show_bug.cgi?id=104323#c1, https://gitlab.freedesktop.org/xorg/xserver/-/issues/300. With a latest update in xkeyboard-config this workaround breaks rofi, see #1642 and https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/issues/341. This commits disabled this work-around (can be re-enabled with -xserver-i300-workaround flag). Hopefully this restores correct rofi functionality. issue: #611 #1642
Can anybody can please confirm the above commit helps. |
For me the commit works. |
@DaveDavenport WORKS! Perfect, thx! |
Works for me as well with an international US keyboard! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Rofi version (rofi -v)
1.7.3
Configuration
https://gist.github.com/mvaaltola/dbda2ead10ad52f8625a57af883d43db
Launch command
rofi -show drun
Step to reproduce
localectl set-x11-keymap us,fi pc105 qwerty grp:ctrls_toggle,caps:escape
asd
, everything works fineasd
again, the output isəßð
i.e. as if the AltGr modifier key was held down when typingExpected behavior
Display correct characters (
asd
instead ofəßð
) when using the Finnish keyboard layout.Actual behavior
When using the Finnish keyboard layout, characters are displayed in rofi as if the AltGr key is held down. For example,
e
becomes€
,a
becomesə
etc.Additional information
Other software, e.g. Visual Studio Code, displays characters correctly when using the same font and keyboard layout.
The text was updated successfully, but these errors were encountered: