Skip to content

Fix highdpi conversion of QTabletEvent coordinates on xcb

Amends 1535fc9f : when high-dpi scaling is enabled, there was an offset from the cursor position to the event position, because QWindow::mapFromGlobal() works in device-independent pixels, but we are using actual screen pixels here.

Pick-to: 6.0 Pick-to: 5.15 Pick-to: 5.12 Task-number: QTBUG-77826 Change-Id: Ic8743b9e5c4041065f530ed1d9d6c49337b0207a Reviewed-by: Friedemann Kleint Friedemann.Kleint@qt.io Reviewed-by: Morten Johan Sørvig morten.sorvig@qt.io (cherry picked from commit 9d51fb57)

2023-04-06: Dmitry Kazakov dimula73@gmail.com this is a modification of Qt's commit, since the official fix uses features available in Qt6 only

KDE-bug: https://bugs.kde.org/show_bug.cgi?id=464256

See also: !60 (merged) !70 (closed)

Source, modified to comply with Qt5PatchCollection policy: szaman/qtbase@e075c06e

Merge request reports

Loading