mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-27 10:51:54 +00:00
Both strings are _right there_ for comparing, so we can just set a flag to note the device definitely changed. Also simplified string management further; hotplug thread now makes a copy of the string before releasing the lock if there was a change event, so when the lock releases further events don't see a NULL and assume it's a new device, causing a lot of work to ripple out and decide nothing has changed, until the system stabilizes again. Now, it just does the right thing once.