Closed JeffDess closed 7 months ago
This will be a race between the IME and the compositor updating modifier states. This needs to be fixed in one of those as far as I can tell. If you feel differently, a PR is welcome with an accompanying justification. I might accept it if I judge it to fix more things than it breaks. Relevant code is in wl_text_input.c and xkb_glfw.c
Given this requires special hardware and a particular IME to reproduce, it's not possible for me to investigate it myself.
Ok thanks for pointing out the relevant files, I might give it a try. Other terminals having the original issue now behave correctly with the Fcitx fix, so that gives me hope it can be fixed in Kitty itself.
Describe the bug Using Kitty in Hyprland, Fcitx as IME and programmable keyboard results in one of the following:
This has been a problem for quite some time, I've checked with ZMK and Fcitx some time ago. A lot of context could be found in this Fcitx issue.
The same happens in X11 but the
GLFW_IM_MODULE=ibus
env solves it. Running Kitty under XWayland in Hyprland is not an option as the window is not handled/tiled correctly, but the bug doesn't occur if I do so. I believe I could not reproduce the issue in KDE Plasma Wayland using the Fcitx option/hack described below, but haven't being using Plasma for some time.To Reproduce Steps to reproduce the behavior:
fcitx5
if not started with the new session.&RPAR
character a couple of times (https://zmk.dev/docs/codes)Notes:
Screenshots If applicable, add screenshots to help explain your problem.
Not a screenshot but, if that helpful
kitten show-key
outputs one key out two keypresses with the fcitx option uncheck:and this with the option checked:
Environment details
Additional context Try to reproduce the problem with
kitty --config NONE
: Reproduced Reproduced on 3 Arch Linux installs: Arco, Endeavour and Vanilla ArchMy ZMK firmware source code: https://github.com/JeffDess/zmk-config
Env config of Hyprland: