XI 2.1+: Duplicate XI_RawMotion events on the root window when using XGrabPointer
Submitted by Andrey Nazarov
Assigned to Xorg Project Team
Description
Created attachment 89191 Test case application
Registering for XI_RawMotion events on the root window makes XInput 2.1 or 2.2 client receive duplicate raw motion events when XGrabPointer is active on the client window. See attached test case (watching in parallel for real input events with evtest helps to spot the problem).
Registering for raw mouse events and grabbing the pointer is basically what SDL 2 does when application requests relative mouse input. This results in doubled mouse sensitivity compared to using evdev directly.
Attachment 89191, "Test case application":
xi-bug.c
Version: 7.7 (2012.06)