Bug 68554 - libXi doesn't handle XI2.1 requests properly
Summary: libXi doesn't handle XI2.1 requests properly
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xi (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-26 05:39 UTC by Peter Hutterer
Modified: 2013-09-05 03:44 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.