summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2022-05-10 09:56:08 +0200
committerLiang Qi <liang.qi@qt.io>2022-05-10 10:32:45 +0200
commit5dff3ae4583f05525f251c1470c957e49e0da7ed (patch)
treedc1c77913258a7b43c2770a496a97db0a1a241e1 /src
parent18168641fd1f2295044d5e41c112a753a5701e2b (diff)
downloadqtwayland-5dff3ae4583f05525f251c1470c957e49e0da7ed.tar.gz
compositor: Fix build without xkbcommon
This amends 4910b7adfa706520cd5180d5384b999488550aef. QWaylandKeyboardPrivate::resetKeyboardState() is behind an #if. We need to match the condition for the code that calls it. Fixes: QTBUG-103341 Change-Id: I6337a64870bb08930b0d19e03ca7fcc28e345493 Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/compositor/compositor_api/qwaylandcompositor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandcompositor.cpp b/src/compositor/compositor_api/qwaylandcompositor.cpp
index 7b06a1c0..8929d473 100644
--- a/src/compositor/compositor_api/qwaylandcompositor.cpp
+++ b/src/compositor/compositor_api/qwaylandcompositor.cpp
@@ -1108,6 +1108,7 @@ QVector<QWaylandCompositor::ShmFormat> QWaylandCompositor::additionalShmFormats(
void QWaylandCompositor::applicationStateChanged(Qt::ApplicationState state)
{
+#if QT_CONFIG(xkbcommon)
if (state == Qt::ApplicationInactive) {
auto *seat = defaultSeat();
if (seat != nullptr) {
@@ -1115,6 +1116,9 @@ void QWaylandCompositor::applicationStateChanged(Qt::ApplicationState state)
keyb->resetKeyboardState();
}
}
+#else
+ Q_UNUSED(state);
+#endif
}
QT_END_NAMESPACE