Repository navigation
Fix OSK Disappearance in VNC/RDP - #135
Open
gujie-leica wants to merge 1 commit into
Open
gujie-leica wants to merge 1 commit into
gujie-leica wants to merge 1 commit into
Conversation
Weston exposes a separate zwp_input_method_v1 global for each seat. The Wayland connection currently stores only one InputMethod and replaces it whenever another global is announced. This destroys the existing context and hides the on-screen keyboard even if its text input is still active. For example, connecting a client to Weston's VNC/RDP backend creates a new seat and immediately hides an already visible keyboard. Keep input-method objects indexed by registry global name and track their activated contexts independently. Route keyboard output through the most recently activated live context, falling back to another context when the current one is removed. Only hide the keyboard and disconnect the Maliit context when no live contexts remain. Handle global removal to clean up the corresponding input-method object. Signed-off-by: gujie <jie.gu@leica-geosystems.com.cn>
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.
Weston exposes a separate zwp_input_method_v1 global for each seat. The Wayland connection currently stores only one InputMethod and replaces it whenever another global is announced. This destroys the existing context and hides the on-screen keyboard even if its text input is still active.
For example, connecting a client to Weston's VNC/RDP backend creates a new seat and immediately hides an already visible keyboard.
Keep input-method objects indexed by registry global name and track their activated contexts independently. Route keyboard output through the most recently activated live context, falling back to another context when the current one is removed.
Only hide the keyboard and disconnect the Maliit context when no live contexts remain. Handle global removal to clean up the corresponding input-method object.