diff options
author | Nicolas Fella <[email protected]> | 2024-07-07 22:16:35 +0200 |
---|---|---|
committer | Shawn Rutledge <[email protected]> | 2024-09-03 21:41:26 +0000 |
commit | fcdef0cd5fc2b2d1acec1a3a2c96cc68d2495d13 (patch) | |
tree | 717ed19c67aad3c41b726b76a510efbb95459666 /src/plugins/platforms/wayland/qwaylandwindow.cpp | |
parent | bb151390240c1f20a6464adbefa497f3559554dd (diff) |
Client: Pass tablet input to decorations
Otherwise decoration cannot be interacted with using a stylus.
Since there is no reason for the decoration to distinguish between
stylus and mouse input reuse the existing mouse handling instead
of adding a dedicated tablet input function to the decoration API.
Fixes: QTBUG-117920
Pick-to: 6.8
Change-Id: I947e5b4f638fb3c2b15a1ca4ed01c02caf9d4812
Reviewed-by: Shawn Rutledge <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandwindow.cpp')
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandwindow.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp index bdc0f282b7c..ef4dfba743d 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow.cpp +++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp @@ -1360,6 +1360,16 @@ bool QWaylandWindow::touchDragDecoration(QWaylandInputDevice *inputDevice, const return mWindowDecoration->handleTouch(inputDevice, local, global, state, mods); } +bool QWaylandWindow::handleTabletEventDecoration(QWaylandInputDevice *inputDevice, + const QPointF &local, const QPointF &global, + Qt::MouseButtons buttons, + Qt::KeyboardModifiers modifiers) +{ + if (!mWindowDecorationEnabled) + return false; + return mWindowDecoration->handleMouse(inputDevice, local, global, buttons, modifiers); +} + void QWaylandWindow::handleMouseEventWithDecoration(QWaylandInputDevice *inputDevice, const QWaylandPointerEvent &e) { if (mMousePressedInContentArea == Qt::NoButton && |