summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopenglvertexarrayobject.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2023-06-13 19:12:01 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-06-20 04:18:38 +0000
commit8c36f935a48d6148471aed78b6485b33c3f3b9e3 (patch)
treee7cfcb5b48e414e9dc13f607aa9a887a6e15db5b /src/opengl/qopenglvertexarrayobject.cpp
parent3e7d4f16561f187d4dda28e59dc031ce1b771f77 (diff)
xcb: Don't clear touch or tablet devices due to device hierarchy event
When QXcbConnection::xi2SetupDevices() reacts to a device hierarchy event and re-discovers an already-known slave device, it doesn't call xi2SetupSlavePointerDevice() again. I.e. it won't attempt to add it to m_touchDevices or m_tabletData because it was already known. So it should not clear m_touchDevices or m_tabletData either, but only remove the touch devices that are known to have disappeared. Tablet styli normally come and go from proximity, so it's ok to avoid deleting the corresponding device data. Also fix some other failure cases after testing hotplugging more with tests/manual/inputdevices: there should be no crashes, no duplicated devices after plugging (although the QAIM might have a bug that makes it look that way), no leftover instances after unplugging. Amends 2a9d93efc68324ce5e41831ea46a3945f1c4531d Fixes: QTBUG-114334 Change-Id: I30f5e532f7dd3a465d56ecdd34d893cbadbf0453 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit a8a75d2c4b0f50f4029aac76d09657d8bbab1295) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/opengl/qopenglvertexarrayobject.cpp')
0 files changed, 0 insertions, 0 deletions