[Differential] [Request, 5,664 lines] D1631: Implement wl_text_input and zwp_text_input_v2 interfaces
graesslin (Martin Gräßlin)
noreply at phabricator.kde.org
Wed May 18 15:36:52 UTC 2016
graesslin created this revision.
graesslin added a reviewer: Plasma.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY
This change introduces support for text input. Text input allows to
compose text on the server (e.g. through a virtual keyboard) and sent
the composed text to the client.
There are multiple interfaces for text input. QtWayland 5.6 uses
wl_text_input, QtWayland 5.7 uses zwp_text_input_v2.
wl_text_input is from pre Wayland-Protocols times and considered as
UnstableV0 in this implementation. The other interface is UnstableV2.
Unfortunately the V2 variant is not yet part of Wayland-Protocols, but
used in Qt.
The implementation hides the different interfaces as good as possible.
The general idea is the same, the differences are rather minor.
This means changes to how interfaces are wrapped normally. On client
side in the Registry a manager is factored which represent either of
the two interfaces. Similar on the server side Display's factory method
takes an argument to decide which interface should be factored. This
way a user of the library can expose both interfaces and thus be
compatible with Qt 5.6 and Qt 5.7 onwards.
REPOSITORY
rKWAYLAND KWayland
BRANCH
graesslin/text-input
REVISION DETAIL
https://phabricator.kde.org/D1631
AFFECTED FILES
autotests/client/CMakeLists.txt
autotests/client/test_text_input.cpp
autotests/client/test_wayland_registry.cpp
src/client/CMakeLists.txt
src/client/protocols/text-input-unstable-v2.xml
src/client/protocols/text-input.xml
src/client/registry.cpp
src/client/registry.h
src/client/textinput.cpp
src/client/textinput.h
src/client/textinput_p.h
src/client/textinput_v0.cpp
src/client/textinput_v2.cpp
src/server/CMakeLists.txt
src/server/display.cpp
src/server/display.h
src/server/seat_interface.cpp
src/server/seat_interface.h
src/server/seat_interface_p.h
src/server/textinput_interface.cpp
src/server/textinput_interface.h
src/server/textinput_interface_p.h
src/server/textinput_interface_v0.cpp
src/server/textinput_interface_v2.cpp
src/tools/mapping.txt
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: graesslin, Plasma
Cc: plasma-devel, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160518/232f4a8d/attachment.html>
More information about the Plasma-devel
mailing list