Bug 71609 - XI 2.1+: Duplicate XI_RawMotion events on the root window when using XGrabPointer
Summary: XI 2.1+: Duplicate XI_RawMotion events on the root window when using XGrabPoi...
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/Core (show other bugs)
Version: 7.7 (2012.06)
Hardware: All Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-14 13:55 UTC by Andrey Nazarov
Modified: 2018-12-17 17:28 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Test case application (2.56 KB, text/plain)
2013-11-14 13:55 UTC, Andrey Nazarov
no flags Details

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.