Bug 24507 - Wrong order of padding bytes in ConfigureWindow
Summary: Wrong order of padding bytes in ConfigureWindow
Status: RESOLVED FIXED
Alias: None
Product: XCB
Classification: Unclassified
Component: Library (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Eamon Walsh
QA Contact: xcb mailing list dummy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-13 11:48 UTC by josch
Modified: 2009-10-21 15:46 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description josch 2009-10-13 11:48:35 UTC
Calling ConfigureWindow yields BadValue Errors as the code generation wrongly places the padding bytes after the value_list.
Switching the following lines in xproto.py fixes the error:

        buf.write(str(buffer(array('I', value_list))))
        buf.write(pack('2x', ))

refer also to:
http://lists.freedesktop.org/archives/xcb/2009-September/005034.html
http://lists.freedesktop.org/archives/xcb/2009-October/005120.html

it was apparently introduced by 57934caa3fb207320c33312646d8e98290950f51
Comment 1 Eamon Walsh 2009-10-21 15:46:48 UTC
Fixed in xcb/proto master as of now.

Either recompile xpyb using xcb/proto from git, or wait until I do a release (should be soon).


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.