summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2022-05-10 14:08:11 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2022-05-10 16:36:37 +0300
commitb253017a52988d7542a829182174323ed9b6dfc4 (patch)
tree6917d9989edefe9ce6fdb7a8b577e1125a6f2ea8
parent5dff3ae4583f05525f251c1470c957e49e0da7ed (diff)
downloadqtwayland-b253017a52988d7542a829182174323ed9b6dfc4.tar.gz
compositor: Fix build without xkbcommon
This amends 4910b7adfa706520cd5180d5384b999488550aef. QWaylandKeyboardPrivate::resetKeyboardState() is behind an #if. We need to match the condition for the definition as well. Fixes: QTBUG-103341 Change-Id: Ib0b5b6284cac10a0cb5d53fca08e0d7226e7240a Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r--src/compositor/compositor_api/qwaylandkeyboard.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/compositor_api/qwaylandkeyboard.cpp b/src/compositor/compositor_api/qwaylandkeyboard.cpp
index 4baeaddb..6f422d2f 100644
--- a/src/compositor/compositor_api/qwaylandkeyboard.cpp
+++ b/src/compositor/compositor_api/qwaylandkeyboard.cpp
@@ -200,7 +200,6 @@ void QWaylandKeyboardPrivate::maybeUpdateXkbScanCodeTable()
altIndex = xkb_keymap_mod_get_index(keymap, XKB_MOD_NAME_ALT);
}
}
-#endif
void QWaylandKeyboardPrivate::resetKeyboardState()
{
@@ -213,6 +212,7 @@ void QWaylandKeyboardPrivate::resetKeyboardState()
updateModifierState(code, WL_KEYBOARD_KEY_STATE_RELEASED);
}
}
+#endif
void QWaylandKeyboardPrivate::updateModifierState(uint code, uint32_t state)
{