summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTang Haixiang <tanghaixiang@uniontech.com>2022-01-13 15:09:46 +0800
committerLiang Qi <liang.qi@qt.io>2022-01-25 12:56:08 +0000
commitcf44bcd9ff11e77a0979ded91848bf0f9f2d5832 (patch)
tree14ebd68ed46adc3ee546e36b5e84a4dd33ab0641
parentf7e1a50b9e72d5e1f03df686c6a96bf7e6d1870d (diff)
downloadqtwayland-cf44bcd9ff11e77a0979ded91848bf0f9f2d5832.tar.gz
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp
index 9490a66d..7fad67ca 100644
--- a/src/client/qwaylandinputdevice.cpp
+++ b/src/client/qwaylandinputdevice.cpp
@@ -1483,7 +1483,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;