Skip to content

Fix OSK Disappearance in VNC/RDP - #135

Open
gujie-leica wants to merge 1 commit into
maliit:qt6-supportfrom
gujie-leica:gujie/fix-maliit-disappear-in-vnc
Open

gujie-leica wants to merge 1 commit into
maliit:qt6-supportfrom
gujie-leica:gujie/fix-maliit-disappear-in-vnc

Conversation

@gujie-leica

Copy link
Copy Markdown

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.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant