summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandintegration.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2021-10-21 14:10:33 +0200
committerLiang Qi <liang.qi@qt.io>2021-11-09 12:07:31 +0000
commitcac38b4c15cf64d44920eb301acdafd768d969a3 (patch)
tree25a20792204a5f41b109506959902651182d020c /src/client/qwaylandintegration.cpp
parentd6d67aa9e9946c0ee3a68bd21b1501cd831d0a13 (diff)
tests: add test for multiple text input
Change-Id: Ief343ebf9d0d6d00533eb3c698c416f4205bbfac Reviewed-by: Inho Lee <inho.lee@qt.io>
Diffstat (limited to 'src/client/qwaylandintegration.cpp')
-rw-r--r--src/client/qwaylandintegration.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/client/qwaylandintegration.cpp b/src/client/qwaylandintegration.cpp
index 67af87cb2..dc96572c2 100644
--- a/src/client/qwaylandintegration.cpp
+++ b/src/client/qwaylandintegration.cpp
@@ -495,12 +495,16 @@ void QWaylandIntegration::reconfigureInputContext()
" use QT_IM_MODULE=qtvirtualkeyboard at compositor-side.";
if (requested.isNull()) {
- if (mDisplay->textInputMethodManager() != nullptr)
+ if (mDisplay->textInputMethodManager() != nullptr) {
mInputContext.reset(new QWaylandInputMethodContext(mDisplay.data()));
- else if (mDisplay->textInputManager() != nullptr)
+ qDebug() << "create QWaylandInputMethodContext" << inputContext();
+ } else if (mDisplay->textInputManager() != nullptr) {
mInputContext.reset(new QWaylandInputContext(mDisplay.data()));
+ qDebug() << "create QWaylandInputContext" << inputContext();
+ }
} else {
mInputContext.reset(QPlatformInputContextFactory::create(requested));
+ qDebug() << "create QPlatformInputContextFactory::create" << inputContext();
}
const QString defaultInputContext(QStringLiteral("compose"));
@@ -514,6 +518,7 @@ void QWaylandIntegration::reconfigureInputContext()
}
#endif
+ qDebug() << "mInputContext " << inputContext();
qCDebug(lcQpaWayland) << "using input method:" << inputContext()->metaObject()->className();
}