summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Roessel <mario.roessel@siemens.com>2023-03-01 12:13:08 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2023-04-24 17:58:03 +0000
commitf614fdfa5dc522f805c7c061535df6a0dc7409b9 (patch)
tree69c1193c094cc641582c167e05339c63ee1a1980
parentf9e234f230bb717b5765791f1d7f90d8e99042bd (diff)
downloadqtwayland-f614fdfa5dc522f805c7c061535df6a0dc7409b9.tar.gz
compositor: adapt to new QXkbCommon::modifiers()
Pick-to: 6.5 Fixes: QTBUG-111503 Done-With: Liang Qi <liang.qi@qt.io> Change-Id: Ib6adb03575c06f667ec5d7a0139b4396888d4010 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r--src/compositor/compositor_api/qwaylandcompositor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/compositor_api/qwaylandcompositor.cpp b/src/compositor/compositor_api/qwaylandcompositor.cpp
index 638d0f36..6cb7dfa0 100644
--- a/src/compositor/compositor_api/qwaylandcompositor.cpp
+++ b/src/compositor/compositor_api/qwaylandcompositor.cpp
@@ -105,9 +105,9 @@ public:
#if QT_CONFIG(xkbcommon)
xkb_state *xkbState = keyb->xkbState();
- Qt::KeyboardModifiers modifiers = QXkbCommon::modifiers(xkbState);
const xkb_keysym_t sym = xkb_state_key_get_one_sym(xkbState, code);
+ Qt::KeyboardModifiers modifiers = QXkbCommon::modifiers(xkbState, sym);
int qtkey = QXkbCommon::keysymToQtKey(sym, modifiers, xkbState, code);
QString text = QXkbCommon::lookupString(xkbState, code);