Wayland IME: candidate window opens away from the caret

crbug #574322335 Omarchy issue #7559 Needs: Wayland session, text scaling ≠ 1.0

Setup

gsettings set org.gnome.desktop.interface text-scaling-factor 1.25
chromium --ozone-platform=wayland   # open this page, enable fcitx5/Mozc

Test

devicePixelRatio is 1.0 -- text scaling is not active, the bug cannot show. Set text-scaling-factor and restart Chromium.

Click the box, type nihao (Pinyin) or konnichiwa (Mozc).
PASS: candidate window opens at the green dot (under the box).  FAIL: it opens at the red dot.

popup belongs here
bug puts it here

devicePixelRatio: - (equals the text scaling factor on a scale-1 monitor; the red dot is the caret position divided by it, because Chromium sends the caret rect in DIP where the compositor expects DIP × ui_scale). Control: relaunch with --force-device-scale-factor=1 -- the popup placement becomes correct.

No CJK keyboard?

Option A (popup, any layout): with fcitx5 active, click the box above and press Ctrl+Alt+Shift+U -- the Unicode picker opens the same candidate popup, anchored to the same cursor rectangle. Green dot = PASS, red dot = FAIL.

Option B (protocol numbers, no IME at all): Chromium sends the cursor rectangle as soon as a text field gains focus. Launch with logging, click the button, compare:

WAYLAND_DEBUG=client chromium --ozone-platform=wayland 2>&1 | grep -a set_cursor_rectangle

Try the fixed build

Chromium 158.0.8109.0 (main @ 2026-10-16) with the fix from CL 8599053. Linux x86_64, unbranded release build, uses its own profile -- it will not touch your existing browser.

tar xf chromium-ime-fix-linux-x64.tar.xz
cd chromium-ime-fix
./run.sh   # opens with --ozone-platform=wayland

Repeat the test above: with this build the candidate popup opens at the green dot.

Links

Chromium issue: crbug 574322335, fix: CL 8599053

Hyprland side-finding (missing done acks keep the rect stale): hyprwm/Hyprland#16571

Downstream report: omarchy #7559

Code: WaylandInputMethodContext::SetCursorLocation, ui/ozone/platform/wayland/host/wayland_input_method_context.cc

Related but distinct (preedit rect feature request): crbug 555310815, electron #53175