fcitx5 prohibits Multi-keyboard Modifier Use in Wayland Apps in Hyprland
System details
Omarchy v3.7.1, Framework Desktop, Kinesis Savant Elite2 Triple Pedal
What's wrong?
Using modifier keys on one keyboard and pressing keys on a different keyboard does not result in expected behavior in Wayland apps - XWayland apps work fine. (I'm using foot pedals for modifier keys)
i.e
SHIFT on keyboard-A + a on keyboard-B
=> results in "a"
=> when it should result in "A"
Turning off fcitx5 resolves this issue with Wayland apps.
A similar or same issue has already been reported in the hyprland issue tracker https://github.com/hyprwm/Hyprland/discussions/9954
Adding a single-keyboard variant of this bug class for the search index.
Setup
- omarchy 3.8.1, Hyprland 0.54.3, ASUS ROG Zephyrus G16 (GU605CR), Swiss French layout (
ch(fr)), no external keyboards, no multi-keyboard configuration. - Stock omarchy install — fcitx5 was running solely because it's in the base package list and the bundled
~/.local/share/omarchy/default/hypr/autostart.conf(exec-once = uwsm-app -- fcitx5 --disable notificationitem). User had never configured nor used an IME.
Symptom
- All SUPER-based keybinds silently stopped firing: SUPER+1/2/3 (workspaces), SUPER+SPACE (walker), SUPER+ALT+SPACE (omarchy menu), every custom
binddwe'd added. Typing into focused apps continued to work. - Pressing SUPER+SPACE made only the SPACE part register in the focused terminal — i.e., the modifier was being dropped before reaching the bind matcher.
What we ruled out (so this is clearly a Hyprland modifier-evaluation issue, not a key/keymap one)
wevconfirms the physical SUPER key emits the correct event:key: 133 sym: Super_L (65515) modifiers: depressed: 00000040: Mod4hyprctl bindslists 193 binds, 42 of them withmodmask: 64— all our SUPER binds are correctly registered.hyprctl dispatch workspace 1works. Dispatcher path is fine.- No active Hyprland submap (
hyprctl submapreturnsdefault). - No other key remappers (
xremap,kanata, etc.) running.
So Hyprland is receiving Mod4 and has Mod4 binds registered — but the matcher is not matching them. Modifier evaluator is wedged.
Workaround that fixes it instantly
Launching wev (or any new app that subscribes a fresh wl_keyboard listener and receives a wl_keyboard.enter) instantly re-syncs Hyprland's modifier evaluator. After that, every keybind fires correctly again.
This makes me fairly confident it's the same root cause class as this issue and as hyprwm/Hyprland#9954 — InputMethodV2.cpp modifier-merge inconsistencies when fcitx5's IME-virtual keyboard is in play. The multi-keyboard case in the original report is the most reproducible expression; the single-keyboard case here is the same machinery getting wedged before any focus event has had a chance to re-sync.
Permanent fix on our end
sudo pacman -R fcitx5 fcitx5-gtk fcitx5-qt. omarchy's autostart line then fails silently on each session (binary gone) and the wedge can't recur from this trigger.
Suggestion for omarchy maintainers
Consider gating fcitx5 behind opt-in setup rather than including it in the default base install + bundled autostart. The vast majority of omarchy users on Latin-script layouts will never invoke an IME, but they're exposed to this Hyprland bug just by having fcitx5 running. Moving fcitx5 to an omarchy install ime step (or similar) would dodge the foot-gun for the common case while keeping it one command away for users who actually need CJK / IME input.
End-user reproduction report — external USB keyboard (via USB-C dock): both SUPER and CTRL modifiers dead on the external board, internal keyboard unaffected
Confirming the multi-keyboard variant of this bug class, reproduced end-to-end on a plain, everyday hardware setup: an external mechanical keyboard plugged through a USB-C dock, sitting next to the built-in laptop keyboard. This is the common docked-laptop arrangement, not an exotic second-input-device configuration.
This write-up documents the full environment, the device topology that looks like the root cause, the exact reproduction, and the evidence that the bindings are present but silently not matching — the same machinery already described in the original report and the single-keyboard variant added by mechanicsunlocked.
1. Environment (verified live on the machine)
| Component | Value |
|---|---|
| OS / Distro | Omarchy 4.0.1-1 |
| Kernel | 7.1.9-arch1-2 |
| Compositor | Hyprland 0.56.2 (v0.56.2, commit efb50993780079460b0cbed1363e2166a2de1d9f) |
| Input method | fcitx5 5.1.21 (omarchy-fcitx5.service, active + enabled) |
| fcitx5 Wayland protocol | native input method protocol: 1 (the compositor IM frontend that creates the virtual keyboard) |
| Machine | Dell XPS 15 9520 (i7-12700H, RTX 3050 Mobile) |
| External keyboard | AONE Varmilo mechanical keyboard, USB ↔ HP USB-C Dock G5 (RTS5411 hub) |
| Internal keyboard | built-in (at-translated-set-2-keyboard, i8042) |
| Keyboard layout | es; kb_options = "shift:both_capslock_cancel" (the user removed Omarchy's compose:caps, so CapsLock is a normal toggle) |
Locale/IME context: layout is es (Latin script) — the user does not need an IME for input. fcitx5 is only present because it ships in the base install and is pulled in by omarchy-fcitx5.service, whose job is to turn ~/.XCompose sequences into text for Wayland clients (emoji + personal sequences).
2. Device topology — the smoking gun
hyprctl devices shows the fcitx5 IME virtual keyboard is the only device Hyprland marks as main: true, while both physical keyboards (internal and external) are main: false:
name main layout
-------------------------------------- -------
aone-varmilo-keyboard false es # external Varmilo, HID iface 1
aone-varmilo-keyboard-1 false es # external Varmilo, HID iface 2 (consumer/extra)
at-translated-set-2-keyboard false es # internal built-in (i8042)
hl-virtual-keyboard-fcitx5 true es # created by the fcitx5 Wayland frontend
The external Varmilo enumerates as two keyboard HID interfaces on /dev/input/by-id:
usb-AONE_Varmilo_Keyboard-event-kbd -> ../event8
usb-AONE_Varmilo_Keyboard-if01-event-kbd -> ../event9
and resolves through the USB-C dock hub on /dev/input/by-path (pci-0000:00:14.0-usb-0:1.3.2:...). Neither HID interface is main.
3. Symptom — exact reproduction
Everything below was reproduced with no custom key remappers (xremap, kanata, etc. — none running) and no active Hyprland submap (hyprctl submap returns default).
- External Varmilo:
SUPER + <key>never fires the Hyprland binding, andCTRL + <key>is equally dead inside applications. Only the base character lands (e.g.SUPER + SPACEyields a plain space). The modifier is dropped before it reaches the bind matcher. - Internal keyboard: the same
SUPER/CTRLshortcuts work perfectly. - Plain typing on the external board works fine (characters, Enter, modifiers alone such as a lone
CTRLpress registering no spurious action).
This is the exact Hyprland modifier-evaluation behavior described in the upstream threads this issue already references:
- hyprwm/Hyprland#9954 — Multi-keyboard Modifier Use Support
- fcitx/fcitx5#1260 — the fcitx5 Wayland IM frontend modifier conflict
A modifier pressed on a non-main physical keyboard is not being merged by Hyprland while the IME virtual keyboard holds the main seat.
4. Evidence that this is a broken modifier evaluator, not a config/binding problem
hyprctl bindslists 228 binds. 42 carrymodmask: 64(Mod4/SUPER), alongside others (68,72,65, etc. forSUPER+SHIFT,SUPER+SHIFT+ALT,SUPER+SHIFT+ALT+CTRL, ...). AllSUPERbinds are correctly registered through Omarchy's__luadispatcher (e.g.modmask: 64,key: "C",dispatcher: "__lua",description: "Universal copy").hyprctl dispatch workspace 1works — the dispatcher path itself is healthy.wev(which subscribes a freshwl_keyboardlistener) confirms the physical key emits the correct event:key: 133 sym: Super_L (65515) modifiers: depressed: 00000040: Mod4- Launching any app that subscribes a fresh
wl_keyboardinstantly re-syncs Hyprland's modifier evaluator, after which everySUPERbind fires again — the same wedge / wedge-clearing mechanics reported for the single-keyboard variant in this thread.
So Hyprland is receiving Mod4, has all the Mod4 binds registered, the dispatcher runs, and yet the matcher does not fire until a fresh wl_keyboard consumer re-syncs the evaluator state: a wedged modifier evaluator, induced by the fcitx5 IME virtual keyboard.
5. Cross-check vs. the earlier comments
- Matches the original multi-keyboard report: a modifier on a non-
maindevice is dropped in Wayland apps. (In the original report XWayland apps were unaffected; the same underlying mechanism — IME virtual keyboard in play — applies here.) - Matches the single-keyboard variant (
mechanicsunlocked): fullSUPER-based binding loss with stock fcitx5 running; the trigger is the IME virtual keyboard becomingmain: true. - Consistent with the preferred remedy already proposed: removing fcitx5 (
sudo pacman -R fcitx5 fcitx5-gtk fcitx5-qt) resolves the wedge. In this case fcitx5 is present solely as a base-package dependency, not because the user needs an IME — reinforcing the "opt-in IME" recommendation.
6. Why this variant matters
The original report used foot pedals as the second "keyboard". This reproduction is the much more ordinary case: an external USB keyboard used alongside the built-in laptop keyboard through a dock — extremely common for docked laptops. Critically, both the primary window-manager modifier (SUPER) and the most common application modifier (CTRL) are affected here, so the impact is not limited to exotic binds: it degrades everyday keyboard use for a mainstream hardware topology.
7. Suggested upstream direction (echoing mechanicsunlocked)
Move fcitx5 out of the default Omarchy install into an opt-in step (e.g. an omarchy install ime-style step). A default Latin-script Omarchy user derives no IME value from fcitx5 but is exposed to this Hyprland modifier wedge simply by having it running — exactly the situation reproduced here. The coupling between ~/.XCompose compose sequences and the fcitx5 Wayland IM virtual keyboard is itself worth revisiting if fcitx5 becomes opt-in, so compose support doesn't inadvertently pull the IME back in.
8. Notes
~/.XComposeis configured (emoji sequences + personal name/email sequences) — the only functional reason fcitx5 is loaded by default on this install.- Full diagnostics captured via
omarchy-debug --no-sudo --print(Omarchy 4.0.1). Available on request if a maintainer wants the complete system inventory (Dell XPS 15 9520, dock topology, monitor/GPU stack). - Happy to attach a screen recording or annotated capture of
wevoutput showing the wedge and its re-sync, if helpful.
Reproduced on a clean Omarchy 4.0.4 VM (Hyprland 0.56.2, fcitx5 5.1.22) with two virtual keyboards: Shift held on one and a pressed on the other, typed into foot. With the stock omarchy-fcitx5.service running the result is a. With the service stopped it is A. Shift and a on the same keyboard give A either way. Each result was the same on every run, and starting the service again brought the bug back.
The defect is in Hyprland's input-method path, and fcitx5 is only how a stock Omarchy install reaches it. When a key comes from a different keyboard than the last one, Hyprland calls IME->setKeyboard() (src/managers/input/InputManager.cpp:1661), and CInputMethodKeyboardGrabV2::sendKeyboardData() (src/protocols/InputMethodV2.cpp:30-56) sends fcitx5 the new keyboard's keymap along with that keyboard's own modifiers. That overwrites the merged modifier state Hyprland had just sent from the other keyboard (InputManager.cpp:1708-1716). fcitx5 then sends the key back through its virtual keyboard with no Shift, and Hyprland passes that on without merging again (InputManager.cpp:1690-1719). Without an input method, Hyprland sends the merged state straight to the app, which is why stopping fcitx5 fixes it and why XWayland apps are not affected. The same code is still on Hyprland's main today, and the upstream thread for it, hyprwm/Hyprland#9954, is still open.
This is the same defect as #7213, where a keyboard sends Shift and the letter from two separate HID endpoints. #13175 (Ctrl lost during key repeat) may be related, but it involves no keyboard switch, so it has not been shown to be the same bug. The single-keyboard SUPER wedge described in an earlier comment was not reproduced here.
There is no contained fix inside Omarchy. The real fix is in Hyprland: keep the merged modifiers when switching the input method's keyboard. The fcitx5 options Omarchy could set do not restore modifiers the compositor has already overwritten. Making fcitx5 opt-in is a product decision for the maintainer. Until one of those happens, systemctl --user disable --now omarchy-fcitx5.service avoids the bug, at the cost of the CapsLock compose sequences and any input method.
Reviewed by Claude Opus 5.5 and, as a second opinion, Codex at medium effort. Codex traced the same mechanism independently from the same source and evidence, and added the fcitx5 side and the check of its options; its independence from this review is not guaranteed. This now waits on the maintainer.