qt6-bb10/src
Shawn Rutledge a8a75d2c4b 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 2a9d93efc6

Pick-to: 6.6 6.5 6.5.2
Fixes: QTBUG-114334
Change-Id: I30f5e532f7dd3a465d56ecdd34d893cbadbf0453
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-06-20 06:07:30 +02:00
..
3rdparty Update public suffix list 2023-06-16 07:07:19 +00:00
android Android: improve screen size and physical size calculation 2023-06-10 11:12:39 +03:00
assets Add Qt icon library for examples 2023-04-22 18:14:38 +03:00
concurrent QVariant::value/qvariant_cast: add rvalue optimization 2023-06-12 09:58:58 +02:00
corelib Long live futexes for Darwin! 2023-06-18 15:45:37 -07:00
dbus QDBus: Fix typo in a function name 2023-05-26 15:46:34 +02:00
entrypoint src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
gui QIcon::fromTheme(): Always consult "hicolor" theme last 2023-06-18 20:28:58 +02:00
network Schannel: Add support for proper listing of ciphers 2023-06-16 09:27:00 +02:00
opengl rhi: Make it a QPA-style private but semi-public API 2023-05-21 15:42:58 +02:00
openglwidgets Make QOpenGLWidget work with QT_WIDGETS_HIGHDPI_DOWNSCALE 2023-05-24 06:55:57 +00:00
platformsupport QXkbCommon: set Qt::KeypadModifier when keypad button is pressed 2023-04-20 06:14:58 +00:00
plugins xcb: Don't clear touch or tablet devices due to device hierarchy event 2023-06-20 06:07:30 +02:00
printsupport Fix GCC 13 warning about freeing the global static 2023-06-06 15:26:04 -07:00
sql Update Cached Table example meta-data 2023-05-24 17:29:20 +02:00
testlib QtCore: Remove std::mutex and std::condition_variable fallbacks 2023-06-12 14:38:11 -07:00
tools Moc: fix generated code for nested enum class corner case 2023-06-18 21:28:58 +03:00
widgets QKeySequenceEdit: don't finish when opening a context menu 2023-06-20 02:03:21 +02:00
xml Clarify module changes in Qt6 2023-05-09 22:36:06 +00:00
CMakeLists.txt Add Qt icon library for examples 2023-04-22 18:14:38 +03:00