summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2021-04-22 15:29:56 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-04-22 15:14:57 +0000
commit2b7bb828414ab373f9362d4fa773d6de482cc72d (patch)
tree0a816c605a8f15182c670def2e92a25842153010
parent5eddb747e8bb5f452e247ea388ef1f6fa37783e7 (diff)
downloadqtwayland-2b7bb828414ab373f9362d4fa773d6de482cc72d.tar.gz
Add missing define guards
Ammend cca1b94190a094b5d1d7ce492b6533e2d330c5e8 to use m_composeState only if xcbcommon is available. Change-Id: I48332b15def3282c5bda3e1c7c393ea7e9849cbe Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org> (cherry picked from commit 05658e127dedfff65789860415537c6920ec574d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/client/qwaylandinputcontext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/qwaylandinputcontext.cpp b/src/client/qwaylandinputcontext.cpp
index 923950fe..7220decd 100644
--- a/src/client/qwaylandinputcontext.cpp
+++ b/src/client/qwaylandinputcontext.cpp
@@ -406,8 +406,10 @@ bool QWaylandInputContext::isValid() const
void QWaylandInputContext::reset()
{
qCDebug(qLcQpaInputMethods) << Q_FUNC_INFO;
+#if QT_CONFIG(xkbcommon)
if (m_composeState)
xkb_compose_state_reset(m_composeState);
+#endif
QPlatformInputContext::reset();