Bug 68554

Summary: libXi doesn't handle XI2.1 requests properly
Product: xorg Reporter: Peter Hutterer <peter.hutterer>
Component: Lib/XiAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: peter.hutterer
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Peter Hutterer 2013-08-26 05:39:40 UTC
XIAllowEvents changed request lengths in XI 2.2. A client calling XIQueryVersion 2.1 is expected 

If a client registers for XI 2.1 is expected to use the original (shorter) request, a client for XI 2.2 is expected to use the new request length.

libXi decides the request length on the server-supported version, not on the one the client uses. This causes a BadLength error in the server.
Comment 1 Peter Hutterer 2013-08-28 02:08:18 UTC
http://patchwork.freedesktop.org/patch/14491/
Comment 2 Peter Hutterer 2013-09-05 03:44:41 UTC
fixed, in the server

commit 94d4e29aedc69431fa9b299ca1b67947173d7a24
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Mon Aug 26 15:51:46 2013 +1000

    Xi: allow for XIAllowEvent requests larger than XI < 2.2 size (#68554)

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.