Skip to content

[HELP WANTED] input: Add support for zwp_text_input_v3 and zwp_input_method_v2

Daniel Stone requested to merge daniels/weston:text-input-v3 into main

Note from @daniels: This patch was originally submitted by @andrunko to the mailing list. I have pulled it from the list, rebased it (only conflict was with autotools having been removed), and posted it here, but I do not plan to work on it myself, and neither does @andrunko.

This is only posted here for others to find. If you would like to take it over and push it forward, please do. This branch is open to all who already have permission to push to Weston; if you do not have this permission and would like to work on this MR, please leave a comment.

Thanks in advance!

Some clients such as gtk+3 require the zwp_text_input_v3 protocol for input-method handling. This patch adds this protocol support to text-backend and also modifies weston-keyboard to support zwp_input_method_v2, which is an update for the v1 protocol and aligned with the updated text-input protocol.

The patch also adds support for zwp_virtual_keyboard_v1, used to emulate the behaviour of a physical keyboard.

Note that the updated input-method v2 protocol does not support the input-panel interface as it did on v1. The input panel interface is implemented by desktop-shell to properly display the virtual keyboard interface. To avoid depending on both input method v2 and v1 (for input-panel only), this patch adds a new weston-input-panel internal protocol (a copy of the old interface from input-method v1), which is then implemented by desktop-shell and used by weston-keyboard when displaying its window.

Signed-off-by: Andre Moreira Magalhaes (andrunko)

Merge request reports