[PATCH 0/1] input: Add support for zwp_text_input_v3 and zwp_input_method_v2

Andre Moreira Magalhaes (andrunko) andrunko at gmail.com
Wed Mar 20 21:51:44 UTC 2019


From: "Andre Moreira Magalhaes (andrunko)" <andre.magalhaes at collabora.com>

Hi,

This is an attempt to implement text-input-v3 on weston/weston-keyboard.

While on that it also implements input-method-v2 which is an update of input-method-v1 designed to work with text-input-v3.
To be able to emulate keyboards it also implements virtual-keyboard-v1 (given this support was removed on input-method-v2).

Note that the weston-editor client is not updated as part of this series (and with no current plans to update it).

The code is heavily inspired by wlroots/virtboard implementation of those protocols and was tested with a few gtk+3 applications and seems to work fine.

I'm sending this as RFC given it depends on input-method-v2 [1] and virtual-keyboard-v1 [2] which are still under review.

BR,
Andre

[1] https://patchwork.freedesktop.org/patch/254850/?series=50571&rev=1
[2] https://patchwork.freedesktop.org/patch/242578/?series=43350&rev=6

Andre Moreira Magalhaes (andrunko) (1):
  input: Add support for zwp_text_input_v3 and zwp_input_method_v2

 Makefile.am                     |   28 +-
 clients/keyboard.c              |  528 ++++++++-------
 clients/meson.build             |   12 +-
 clients/window.c                |    9 +
 clients/window.h                |    3 +
 compositor/meson.build          |   12 +-
 compositor/text-backend.c       | 1104 +++++++++++++++++--------------
 desktop-shell/input-panel.c     |   12 +-
 desktop-shell/meson.build       |    4 +-
 protocol/meson.build            |    4 +
 protocol/weston-input-panel.xml |   63 ++
 tests/meson.build               |    6 +-
 tests/text-test.c               |  151 ++---
 13 files changed, 1056 insertions(+), 880 deletions(-)
 create mode 100644 protocol/weston-input-panel.xml

-- 
2.20.1



More information about the wayland-devel mailing list