[PATCH 00/13] Clean up text protocol and move to wayland

Yichao Yu yyc1992 at gmail.com
Tue Feb 19 11:01:35 PST 2013


On Tue, Feb 19, 2013 at 1:26 PM, Jan Arne Petersen
<jpetersen at openismus.com> wrote:
> From: Jan Arne Petersen <jpetersen at openismus.com>
>
> This series finalizes the first version of the text protocol and
> moves it from Weston to Wayland, so that it can be implemented in
> toolkits.

Well, the only problem is that this protocol is totally not usable yet
and it lacks every single feature a non-layout input method needs.
Apart from what I have already mentioned ((more important ones first)
tracking input context, cursor following, getting information about
im-clients (pid, appname, context), and not really sure about having
multiple processes drawing the user interface) there is one more
feature that is missing. Is it possible for the im-client to send a
key event that is not previously handled by the input method back to
text_model (or is wl_text_input the new name...)? At least I haven't
found a request on the im-client to send this out... This is really
useful when the text model only get input focus after certain key
event (see pidgin input window as an example).

>
> It adds the missing language/text-direction support to the
> protocol.
>
> text_model gets renamed to wl_text_input, text_model_factory to
> wl_text_input_manager.
>
> There is also a small fix on the preedit-style enum and
> wl_text_input::commit is renamed to ::commit_state to make it more
> clear what is commited. There are also some small documentation fixes.
>
> Jan Arne Petersen (11):
>   tests: Fix text-test
>   text: Add language and text-direction to protocol
>   text: Add example for language/text direction
>   keyboard: Reset state on activate
>   editor: Reset text model on reset
>   view: g_type_init() is deprecated in glib >= 2.35
>   text: rename text_model::commit to commit_state
>   text: Order requests and events in a nice way
>   text: Rename text_model to text_input
>   text: Add "none" preedit-style
>   text: Move text protocol to wayland
>
> Krzesimir Nowak (2):
>   text: Fix password content hint value
>   text: Fix some text and input-method docs
>
>  clients/Makefile.am        |   6 +-
>  clients/editor.c           | 182 +++++++++++++++++-----------
>  clients/keyboard.c         | 184 +++++++++++++++++++++++------
>  clients/view.c             |   2 +
>  clients/weston-simple-im.c |  54 +++++----
>  protocol/Makefile.am       |   1 -
>  protocol/input-method.xml  |  51 ++++++--
>  protocol/text.xml          | 288 ---------------------------------------------
>  src/Makefile.am            |   4 -
>  src/text-backend.c         | 287 +++++++++++++++++++++++++-------------------
>  tests/Makefile.am          |   5 +-
>  tests/text-test.c          | 147 +++++++++++++----------
>  12 files changed, 589 insertions(+), 622 deletions(-)
>  delete mode 100644 protocol/text.xml
>
> --
> 1.8.1.2
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


Yichao Yu


More information about the wayland-devel mailing list