diff options
author | Tang Haixiang <tanghaixiang@uniontech.com> | 2022-01-13 15:09:46 +0800 |
---|---|---|
committer | Tang Haixiang <tanghaixiang@uniontech.com> | 2022-01-20 11:05:27 +0000 |
commit | 751f701f4f2484b0fbad14904496c9a03cd787a2 (patch) | |
tree | 5935f560cd5f906ed58aa690d7c6bfb7ec72d896 | |
parent | 1be2d5952b6085bbefc4edfa0431f4cac2380594 (diff) |
wayland touch event to add key modifier
Add touch event keyboard modifier for wayland, which is done in qpa
xcb, which is very convenient on tablets with keyboards.
Change-Id: I4e6ed369f3444da41d06f9a9a83addf7de0a4e91
Reviewed-by: Povilas Kanapickas <povilas@radix.lt>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
(cherry picked from commit a2dd5efbaa4b63782261664ca9a1aa9973db976e)
Reviewed-by: Liang Qi <liang.qi@qt.io>
-rw-r--r-- | src/client/qwaylandinputdevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp index b71ffc5a5..76460a572 100644 --- a/src/client/qwaylandinputdevice.cpp +++ b/src/client/qwaylandinputdevice.cpp @@ -1529,7 +1529,7 @@ void QWaylandInputDevice::Touch::touch_frame() return; } - QWindowSystemInterface::handleTouchEvent(window, mParent->mTouchDevice, mPendingTouchPoints); + QWindowSystemInterface::handleTouchEvent(window, mParent->mTouchDevice, mPendingTouchPoints, mParent->modifiers()); // Prepare state for next frame const auto prevTouchPoints = mPendingTouchPoints; |