Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text-input-v3 implementation in chromium does not work with sway #8276

Open
q234rty opened this issue Aug 6, 2024 · 8 comments
Open

Text-input-v3 implementation in chromium does not work with sway #8276

q234rty opened this issue Aug 6, 2024 · 8 comments
Labels
bug Not working as intended

Comments

@q234rty
Copy link

q234rty commented Aug 6, 2024

  • Sway Version:

  • Debug Log:

  • Description:

    • Run fcitx5 -d
    • Run a snapshot build of chromium with --ozone-platform=wayland --enable-wayland-ime --wayland-text-input-version=3 The build I have used has build number 1336936 and is available here
    • Try to input some text
    • Observe that the IME pops up but no text can be commited into chromium.
      I was inclined to report this to chromium but have found that other compositors such as kwin and labwc works, so I decided to report this here instead.
@q234rty q234rty added the bug Not working as intended label Aug 6, 2024
@ogarai
Copy link

ogarai commented Aug 6, 2024

I tried on arch + sway version 1.9 with fcitx5-anthy and in my case it seems to be working fine, except for the candidate selection popup which doesn't work on any app on sway.

Screencast.from.2024-08-06.16-52-49.webm

@q234rty
Copy link
Author

q234rty commented Aug 7, 2024

I tried on arch + sway version 1.9 with fcitx5-anthy and in my case it seems to be working fine, except for the candidate selection popup which doesn't work on any app on sway.

Interesting, I can't reproduce your results at all, even if I switch to sway 1.9 and use fcitx5-anthy instead of fcitx5-chinese-addons.

Would be great if you can post full WAYLAND_DEBUG=1 logs for chromium in your setup.

@ogarai
Copy link

ogarai commented Aug 7, 2024

Would be great if you can post full WAYLAND_DEBUG=1 logs for chromium in your setup.

wl_debug.txt

@q234rty
Copy link
Author

q234rty commented Aug 8, 2024

wl_debug.txt

Interesting, here's my logs on sway 1.9 for comparison:
wayland-debug-chromium.log
After the first xdg_activation_v1@25.activate event my logs have the following lines while your logs do not:

[ 960977.755]  -> wl_compositor@9.create_surface(new id wl_surface@40)
[ 960977.778]  -> wp_fractional_scale_manager_v1@23.get_fractional_scale(new id wp_fractional_scale_v1@48, wl_surface@40)
[ 960977.783]  -> wp_viewporter@20.get_viewport(new id wp_viewport@49, wl_surface@40)
[ 960977.786]  -> wp_content_type_manager_v1@22.get_surface_content_type(new id wp_content_type_v1@50, wl_surface@40)
[ 960977.798]  -> wl_compositor@9.create_region(new id wl_region@51)
[ 960977.801]  -> wl_region@51.add(0, 0, 1, 1)
[ 960977.804]  -> wl_surface@40.set_opaque_region(wl_region@51)
[ 960977.806]  -> wl_region@51.destroy()
[ 960977.966]  -> zwp_text_input_manager_v3@19.get_text_input(new id zwp_text_input_v3@52, wl_seat@29)

After this most of the actions seem to have went to zwp_text_input_v3@52 instead...

@q234rty
Copy link
Author

q234rty commented Aug 8, 2024

@leihaojun sway 1.9 supports text-input-v3 and input-method-v2, it just does not support rendering input-method popups.

@q234rty
Copy link
Author

q234rty commented Aug 8, 2024

it seem that chromium only support text-input-v1, so sway can't make it work....

It has just added basic support for text-input-v3, that's why the bug description mentions a snapshot build. See also the latest comments in https://issues.chromium.org/issues/40113488

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

3 participants
@ogarai @q234rty and others