summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2021-09-08 15:45:50 +0200
committerLiang Qi <liang.qi@qt.io>2021-10-07 12:13:01 +0200
commit99a6eb7b79471114705d7c68b0d5b388ea16ac03 (patch)
tree483af2a9ca42b298c7846081f9b94f0f854fa56f /examples
parenta572df8ac61d6009a1863ac7216e6abdd24df3cd (diff)
Support different text input protocols
from clients and one compositor at same time. For compositor side, just need to have TextInputManager and QtTextInputMethodManager together. For client side, set QT_WAYLAND_TEXT_INPUT_PROTOCOL env to choose: * If the env is unset(empty) or invalid, it will search qt_text_input_method_v1 and zwp_text_input_v2 in order * Set as "qt_text_input_method_v1" or "zwp_text_input_v2" if compositor supports * Set as "zwp_text_input_v2;qt_text_input_method_v1" Change-Id: Ieec293ff412bf2d3e5ca9c69a951bfe1899cc808 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/wayland/pure-qml/qml/main.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml
index 5a0f324ec..837672764 100644
--- a/examples/wayland/pure-qml/qml/main.qml
+++ b/examples/wayland/pure-qml/qml/main.qml
@@ -79,6 +79,7 @@ WaylandCompositor {
// Extension for Input Method (QT_IM_MODULE) support at compositor-side
// ![text input]
+ TextInputManager {}
QtTextInputMethodManager {}
// ![text input]
}