The issue arises when a client application uses easystroke for mouse gestures, and the main thread modifies various data structures used by the input thread without acquiring a lock, resulting in a race condition. Specifically, AttachDevice in dix/devices.c does not acquire an input lock.