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

Unicode input doesn't work on chrome+wayland. #273

Open
rvaiya opened this issue Aug 5, 2022 · 2 comments
Open

Unicode input doesn't work on chrome+wayland. #273

rvaiya opened this issue Aug 5, 2022 · 2 comments
Labels
3.0 bug Something isn't working chrome documentation Improvements or additions to documentation faq todo unicode wayland

Comments

@rvaiya
Copy link
Owner

rvaiya commented Aug 5, 2022

It appears that chrome's wayland ozone implementation (platform abstraction layer) completely ignores the XCompose file, breaking unicode input. This affects all chromium based browsers (e.g brave) running with the experimental --ozone-platform=wayland flags and is likely the root cause of #196 and #31 (comment).

The current solution is simply to run chrome using XWayland (the default behaviour in the absence of such flags), since this is a bug in chrome and native wayland support is currently marked as experimental anyway.

Additional Notes:

Appending --gtk-version=4 will cause chrome to use gtk4 (if it is installed) for input processing, which does account for ~/.XCompose, however gtk4 compose handling is also broken (it doesn't handle large compose files properly) and will cause the process to crash (a veritable improvement). The gtk bug is potentially fixable by judiciously pruning the shipped XCompose file.

Refs:

https://source.chromium.org/chromium/chromium/src/+/main:ui/base/ime/character_composer.cc
https://bugs.chromium.org/p/chromium/issues/detail?id=1183262
https://source.chromium.org/chromium/chromium/src/+/main:ui/base/ime/character_composer_sequences.txt (builtin compose table generated from X keysyms)
https://source.chromium.org/chromium/chromium/src/+/main:third_party/wayland-protocols/gtk/gtk/gtkimcontextsimple.c

@rvaiya rvaiya added bug Something isn't working unicode wayland chrome labels Aug 5, 2022
This was referenced Aug 5, 2022
@rvaiya rvaiya added faq documentation Improvements or additions to documentation labels Aug 5, 2022
@rvaiya
Copy link
Owner Author

rvaiya commented Aug 14, 2022

Related: #285

@joihn
Copy link
Contributor

joihn commented Jul 15, 2023

Since GTK4 are becomming more common, a warning in the man page could be usefull in the unicode section
edit: #540

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0 bug Something isn't working chrome documentation Improvements or additions to documentation faq todo unicode wayland
Projects
None yet
Development

No branches or pull requests

2 participants