Client: Pass modifiers to tablet event handling

So that the resulting QTabletEvent has the modifier information

Pick-to: 6.8 6.7 6.5
Change-Id: Ifbd771f59ac41b740ccb65db2986726e7a32a760
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
Nicolas Fella 2024-06-10 15:40:31 +02:00
parent e349e5529d
commit 803f160dc3

View File

@ -272,9 +272,11 @@ void QWaylandTabletToolV2::zwp_tablet_tool_v2_frame(uint32_t time)
qreal tangentialPressure = m_pending.slider;
qreal rotation = m_pending.rotation;
int z = int(m_pending.distance);
QWindowSystemInterface::handleTabletEvent(window, timestamp, localPosition, globalPosition,
int(m_tabletDevice), int(m_pointerType), buttons, pressure,
xTilt, yTilt, tangentialPressure, rotation, z, m_uid);
QWindowSystemInterface::handleTabletEvent(
window, timestamp, localPosition, globalPosition, int(m_tabletDevice),
int(m_pointerType), buttons, pressure, xTilt, yTilt, tangentialPressure, rotation,
z, m_uid, m_tabletSeat->seat()->modifiers());
}
if (!m_pending.proximitySurface && m_applied.enteredSurface) {