end4-pC icon indicating copy to clipboard operation
end4-pC copied to clipboard

Fcitx5/Rime loses input-context focus in left sidebar after Super+Space

Open SetrenL opened this issue 4 weeks ago • 0 comments

Problem

Chinese input with Fcitx5/Rime fails in the left sidebar (AI chat input). English input works initially. After clicking the input and pressing Super+Space, the input-method tray switches, but no input-method switch indicator appears near the field and Chinese input does not reach it. During some attempts, neither English nor Chinese reaches the field after switching.

The same input method works in ordinary applications. The launcher was also affected initially; a local focus-grab workaround helped the launcher, but the user still reproduces the left-sidebar failure.

Reproduction

  1. Run the ii panel family under Hyprland with Fcitx5 and Rime.
  2. Open the left sidebar and click the AI chat input field.
  3. Press Super+Space (the configured Fcitx trigger).
  4. Type nihao and try to select/commit Chinese text.

Expected: Fcitx stays associated with the sidebar input, shows composition/candidates, and commits Chinese text.

Actual: the tray changes input method, but the sidebar cannot accept Chinese; input-method focus moves to the application underneath while the sidebar remains open.

Captured focus evidence

A background recorder collected org.fcitx.Fcitx.Controller1.DebugInfo while the user performed the steps, rather than sampling only after they returned to the terminal. A later attempt also logged the QML text area's activeFocus and the shared grab state. Input text was not recorded.

Condensed timeline from that later attempt:

Time Fcitx context for qs Fcitx context for underlying kitty Current input method
22:00:23, before switching focus=1 focus=0 keyboard-us
22:00:23, after switching focus=0 focus=1 rime

The sidebar text area reported QML activeFocus=true at 22:00:23.423 and did not report false until 22:00:33.157. The shared grab was already inactive during this attempt. This shows a discrepancy between QML item focus and Fcitx input-context focus; it does not establish the underlying cause.

An earlier capture, before the grab workaround, likewise showed Fcitx focus moving from qs to kitty while the quickshell:sidebarLeft layer remained present.

Environment

  • Hyprland 0.57.1 (acc1aa0bfd4bd575dcb0f76c35ccf12b660a1ab9)
  • Quickshell 0.3.2, quickshell-git revision 4f508be500dea6e5732cc3d50382a0048b17e7b1
  • Qt 6.12.0 (qt6-base 6.12.0-3.1)
  • Fcitx5 5.1.23-1.1
  • fcitx5-qt 5.1.16-2.1
  • Input engine: Rime; trigger: Super+Space
  • Wayland, single 1920x1080 display, scale 1
  • QT_IM_MODULE=fcitx in the running Quickshell process
  • The Qt6 Fcitx platform-input-context plugin is loaded in Quickshell

Local configuration / experiments

This is a customized Hyprland setup, not a clean-config reproduction. Custom Super-key bindings implement tap-to-open-launcher and scrolling-layout edge focus, including temporary follow_mouse changes. These may be relevant.

  • Forcing Chinese activation with fcitx5-remote -o succeeded in some synthetic tests, but bypasses the user's normal switching path and is not proof of a fix.
  • Changing sidebar/launcher keyboard interactivity to Exclusive and adding an explicit Super+Space command did not reliably solve the issue and caused input regressions. Both changes were reverted.
  • Temporarily bypassing the custom follow_mouse suppression/restoration did not prevent a synthetic focus-loss reproduction; that diagnostic change was reverted.
  • Disabling the shared HyprlandFocusGrab allowed a synthetic sidebar test to switch and commit Chinese. A narrower local workaround now pauses that grab while a text input has focus. The user reports the launcher works with this workaround, but the left sidebar still fails. The captured QML/Fcitx mismatch above occurred with this workaround active.

No complete fix is confirmed. Reporting the evidence for investigation rather than proposing the unsuccessful workarounds as a fix.

SetrenL avatar Nov 05 '26 14:11 SetrenL