Bug 71609

Summary: XI 2.1+: Duplicate XI_RawMotion events on the root window when using XGrabPointer
Product: xorg Reporter: Andrey Nazarov <andrey>
Component: Server/Input/CoreAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: vluchits
Version: 7.7 (2012.06)   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Test case application none

Description Andrey Nazarov 2013-11-14 13:55:04 UTC
Created attachment 89191 [details]
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.
Comment 1 Victor Luchits 2015-04-26 14:38:13 UTC
Confirming. This bug causes double sensitivity in games.
Comment 2 GitLab Migration User 2018-12-17 17:28:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/597.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.