On Wayland, typing Chinese fast in Electron apps (like Cherry Studio) scrambles the characters — they shuffle and reorder. Type slowly and it’s fine. Happens across multiple Electron apps, so it’s clearly Electron’s input path on Wayland/XWayland, not the IME itself.
Others hit the same issue: Cherry Studio #104
Fix
Enable native Wayland IME and Ozone for Electron. Edit ~/.config/electron-flags.conf:
--enable-wayland-ime
--ozone-platform-hint=auto
--ozone-platform=wayland
--enable-features=UseOzonePlatform,WaylandWindowDecorations
Save, then fully quit the target app and reopen (not just close the window — kill the process). Most Electron apps read this file automatically and switch to the native input path. The scrambling stops.
Two gotchas:
- If the app still runs as XWayland, check its launcher for a forced
--ozone-platform=x11and remove it - Works for both Fcitx5 and IBus, on Hyprland, Sway, or KDE Wayland