Bug: IME (Input Method) never enabled on Linux/Wayland — set_ime_allowed(true) missing from Linux code path
Summary
On Linux/Wayland, Warp never activates the input method (fcitx5, ibus, etc.), making CJK and other IME-based input completely non-functional. Pressing the IME trigger key (e.g. Ctrl+Space) has no effect inside Warp.
Root Cause
winit::Window::set_ime_allowed(true) is called only inside a #[cfg(windows)] block in crates/warpui/src/windowing/winit/window.rs:
// line 1363
#[cfg(windows)]
{
// ...
window.set_ime_allowed(true); // ← only reached on Windows
// ...
}
On Linux, this call is never made. Without it, winit never sends zwp_text_input_v3.enable() to the Wayland compositor, so the compositor never activates the IM session, and fcitx5/ibus never receives a keyboard grab for the window.
Steps to Reproduce
- Run Warp on Linux with a Wayland compositor (tested: Hyprland 0.54.3)
- Install fcitx5 with Rime or Pinyin input method
- Focus the Warp terminal input
- Press
Ctrl+Space(or your configured IME trigger key) - Nothing happens — fcitx5 is not activated
fcitx5-remote confirms it stays inactive (1) while Warp is focused.
Expected Behavior
Pressing the IME trigger key activates the input method, allowing preedit and CJK character composition (same as any other Wayland-native terminal).
Environment
- OS: Arch Linux, kernel 6.19.14
- Compositor: Hyprland 0.54.3 (Wayland)
- Input method: fcitx5 5.x with
libwaylandim.so(text-input-v3 support confirmed) - Warp: built from source (OSS)
Fix
Add a #[cfg(target_os = "linux")] block after window creation that calls set_ime_allowed(true):
#[cfg(target_os = "linux")]
if let Ok(window) = created_window.as_ref() {
window.set_ime_allowed(true);
}
This causes winit's Wayland backend to call zwp_text_input_v3.enable(), which notifies the compositor to activate the IM session for the window. Verified fix: fcitx5 activates on Ctrl+Space and CJK input works correctly after the change.
Related: #6877
@leozeli
Here's what I found while triaging this issue:
This appears closely related to #6877, but this report includes a more concrete Linux/Wayland activation path and a verified local workaround. I do not see a need for additional reporter input before maintainers evaluate the fix.
Maintainer details
I concluded that linux/Wayland IME activation appears broken because Warp creates winit windows without enabling IME outside the Windows path, preventing CJK input methods from activating..
Automated triage
Summary: This looks like a Linux/Wayland terminal input bug where Warp never enables winit IME support for Linux-created windows, so fcitx5/ibus cannot activate for CJK composition.
Reproducibility: High. The report provides a concrete Wayland + Hyprland + fcitx5 reproduction path and code inspection confirms the key platform asymmetry.
Likely root cause: crates/warpui/src/windowing/winit/window.rs calls Window::set_ime_allowed(true) only inside the Windows-specific post-window-creation block. crates/warpui/src/windowing/winit/event_loop/mod.rs already handles Ime::Enabled, Ime::Preedit, Ime::Commit, Ime::Disabled, and IME cursor positioning, so Linux appears to be missing the window-level opt-in rather than the downstream IME event plumbing.
Duplicate check: #6877 is closely related because it reports Wayland IME support being ignored, but the provided recent/open candidates do not include two or more sufficiently matching duplicates under the triage workflow's duplicate threshold. #4700, #9012, #9161, and #9357 cover broader or different CJK/IME surfaces, platforms, or documentation requests.
Suggested routing: @vorporeal for the WarpUI/winit windowing path, with @vkodithala as terminal-input surface context if needed.
This is my automated analysis and may be incorrect. A maintainer will verify the details.
Powered by Oz
@leozeli — I opened #9602 implementing the exact #[cfg(target_os = "linux")] window.set_ime_allowed(true) block from your fix section. @vorporeal would like an end-to-end confirmation from someone who has actually hit this on Wayland + fcitx5/ibus before merging.
Since you already wrote "Verified fix: fcitx5 activates on Ctrl+Space and CJK input works correctly after the change" above, would you mind:
- Building #9602 (
gh pr checkout 9602then./script/runon your Hyprland setup), and - Dropping a one-liner on the PR confirming fcitx5 still activates and CJK preedit/commit work as expected?
Or, if anyone else watching this issue runs Wayland with an IME, a second confirmation would also unblock the merge. Thanks!
English
Summary
Warp does not allow switching to Japanese input with fcitx5/Mozc on Fedora 43 + niri Wayland. This happens both with Native Wayland enabled and Native Wayland disabled in Warp settings.
Other applications on the same session can use fcitx5/Mozc correctly, so this appears to be specific to Warp.
Environment
-
OS: Fedora 43
-
Compositor: niri on Wayland
-
Input method: fcitx5 + Mozc
-
Display: 2880x1800, scale 1.25
-
Warp setting tested:
- Native Wayland: ON
- Native Wayland: OFF
Relevant environment variables
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
Checked with:
systemctl --user show-environment | grep -E 'XMODIFIERS|GTK_IM_MODULE|QT_IM_MODULE|SDL_IM_MODULE|INPUT_METHOD'
Output:
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
What works
fcitx5/Mozc Japanese input switching works in other applications in the same session.
For example:
- Ghostty: works
- Zen Browser: works
- Notion Electron: works when launched with:
notion-electron --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime
What does not work
In Warp, Japanese input switching does not work.
This happens in both cases:
- Warp Native Wayland enabled
- Warp Native Wayland disabled
Pressing the IME switch key does not switch input to Mozc/Japanese input inside Warp.
Expected behavior
Warp should allow switching to fcitx5/Mozc Japanese input, similar to other Wayland applications or XWayland applications in the same session.
Actual behavior
Warp remains in English/direct input mode. The IME switch key has no effect inside Warp.
Additional context
I originally enabled Native Wayland in Warp because the window and cursor were incorrectly scaled on niri with fractional scaling. Enabling Native Wayland fixed the scaling issue, but IME switching still does not work.
Disabling Native Wayland does not fix the IME problem either.
日本語
概要
Fedora 43 + niri Wayland 環境で、fcitx5 + Mozc を使っていますが、Warp だけ日本語入力への切り替えができません。
Warp の設定で Native Wayland を有効にしても無効にしても、どちらでも日本語入力に切り替えられません。
同じセッション上の他のアプリでは fcitx5/Mozc が正常に動作しているため、Warp 固有の問題に見えます。
環境
-
OS: Fedora 43
-
Compositor: niri on Wayland
-
Input method: fcitx5 + Mozc
-
Display: 2880x1800, scale 1.25
-
試した Warp 設定:
- Native Wayland: ON
- Native Wayland: OFF
関連する環境変数
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
以下のコマンドで確認しました。
systemctl --user show-environment | grep -E 'XMODIFIERS|GTK_IM_MODULE|QT_IM_MODULE|SDL_IM_MODULE|INPUT_METHOD'
出力:
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
正常に動作しているもの
同じ niri Wayland セッション上で、他のアプリでは fcitx5/Mozc による日本語入力切り替えが動作しています。
例:
- Ghostty: 動作します
- Zen Browser: 動作します
- Notion Electron: 以下のように起動すると動作します
notion-electron --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime
動作しないもの
Warp では日本語入力への切り替えができません。
以下の両方で再現します。
- Warp Native Wayland 有効
- Warp Native Wayland 無効
IME 切り替えキーを押しても、Warp 内では Mozc/日本語入力に切り替わりません。
期待する動作
同じセッション上の他の Wayland アプリや XWayland アプリと同様に、Warp でも fcitx5/Mozc による日本語入力切り替えができることを期待しています。
実際の動作
Warp 内では英語/直接入力のままで、IME 切り替えキーを押しても反応しません。
補足
最初は niri の fractional scaling 環境で Warp のウィンドウとカーソルが異常に拡大表示されていたため、Warp の Native Wayland を有効にしました。これにより表示スケールの問題は解消しましたが、日本語入力切り替えはできないままです。
また、Native Wayland を無効にしても IME の問題は解消しません。
Confirmed. Tested on Arch Linux + Hyprland (Wayland) with fcitx5. After applying the change from #9602, Ctrl+Space activates the input method and CJK input works correctly in Warp. The fix is correct. @anshul-garg27