Bug 29392 - Tutorial uses wrong function, confusion ensues
Summary: Tutorial uses wrong function, confusion ensues
Status: RESOLVED FIXED
Alias: None
Product: XCB
Classification: Unclassified
Component: Misc (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: xcb mailing list dummy
QA Contact: xcb mailing list dummy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 17:10 UTC by Devin J. Pohly
Modified: 2010-08-04 21:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Devin J. Pohly 2010-08-03 17:10:29 UTC
The XCB tutorial ("Events" page) both on the website and in Git currently states:

If [a] window has already been created, we can use the xcb_configure_window() function to set the events that the window will receive.

It then goes on to show an example of how one would use this function for this task.

But if my understanding of Xlib and reading of xproto.c steer me correctly, xcb_configure_window() will resize and move a window about, but xcb_change_window_attributes() is the function which allows setting of event masks, background pixmaps, colormaps, and so forth.  It has the exact same signature, but it's a very different function!

It would be nice if this could be changed, especially since the tutorials are still the best/only XCB docs out there.
Comment 1 Eamon Walsh 2010-08-04 21:52:32 UTC
Fixed.


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.