text-backend: bridge text-input-v3 to input-method-v1 - #168
Open
abjfh30 wants to merge 3 commits into
Open
Conversation
The compositor needs the text-input-v3 server protocol to expose the new manager global and translate requests to input-method-v1. Generate the v3 protocol sources and link them into the compositor. Signed-off-by: huyuliang <abjfh@aliyun.com>
Native Wayland clients such as JetBrains Runtime use text-input-v3, but WSLg currently exposes only input-method-v1 through its existing input method integration. These clients therefore cannot use the configured input method through the native Wayland backend. Expose the v3 manager and translate double-buffered client state to input-method-v1. Translate preedit, commit, and surrounding-text updates back to v3 while preserving focus, serial, and inert resource semantics. Signed-off-by: huyuliang <abjfh@aliyun.com>
Run the text backend in the desktop test shell and provide a small input-method-v1 helper so the v3 bridge can be exercised end to end. Cover state translation, stale serial delivery, enable double buffering, cached result cleanup, competing text inputs, focus loss, seat teardown, and inactive input-method context requests. Use a keyboard event as an ordering barrier between the two Wayland clients. Signed-off-by: huyuliang <abjfh@aliyun.com>
Author
|
@microsoft-github-policy-service agree |
This was referenced Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Motivation
Native Wayland clients such as JetBrains Runtime use text-input-v3, but
WSLg currently exposes only input-method-v1 through its existing input
method integration. The bridge allows these clients to use the configured
input method without falling back to XWayland.
Related issues:
Testing