summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTang Haixiang <tanghaixiang@uniontech.com>2022-01-13 15:09:46 +0800
committerTang Haixiang <tanghaixiang@uniontech.com>2022-01-20 11:05:39 +0000
commit8aa723004d290be76670c7f2ab26a21b0d64ec06 (patch)
tree80316d4617bf40b4d5ea0236f144c0afcf69a66e
parent469c20d0b9b9824ad4b8d6e4930204318b14d943 (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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp
index 3e59899de..444b98ec3 100644
--- a/src/client/qwaylandinputdevice.cpp
+++ b/src/client/qwaylandinputdevice.cpp
@@ -1524,7 +1524,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;