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

[Wayland] Implement IME support. #93021

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Jun 11, 2024

Implements IME support via zwp_text_input_v3 protocol.

Fixes #92643

Not implemented (since it's not supported by other platforms and Godot DisplayServer API):

  • Support for surrounding_text (it seems to be optional and not doing anything).
  • Support for cursor size (currently hardcoded to 1x10).

I will refactor and unify virtual keyboard and IME DisplayServer API for 4.4 and add support for this. For 4.3 it seems to be working fine without any of this (at least to the extent input is working on Wayland in general).

@bruvzg bruvzg added this to the 4.3 milestone Jun 11, 2024
@bruvzg bruvzg marked this pull request as ready for review June 12, 2024 07:02
@bruvzg bruvzg requested review from a team as code owners June 12, 2024 07:02
@akien-mga akien-mga requested a review from Riteo June 18, 2024 15:54
Copy link
Contributor

@Riteo Riteo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay. Just gave a look and the code looks mighty fine!

I really appreciate that you did this with WaylandThread in mind, I realize that it's not very documented yet but nonetheless you managed to go along with it great! :D

Nothing looks out of place, although please note that I didn't test it and I don't know IMEs terribly well so TIWAGOS on the actual details.

Thank you so much for working on this!

@akien-mga akien-mga merged commit 4e01d86 into godotengine:master Jun 19, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

To enable Wayland, fctix5 can't switch input method
3 participants