NEWS revision 245c37e9
1Release 1.13 (2018-02-28)
2=========================
3* Add support for variable-sized lists of FDs
4* Poll for events when blocking waiting for special events
5* xinput: Enable XInput extension by default
6* ge: Add explicit support for GenericEvent extension
7* Fix documentation warnings from clang
8* Cosmetic cleanups
9
10Release 1.12 (2016-05-18)
11=========================
12* configure: Various fixes for dri3 and FD passing support
13* configure: Don't report all the warning CFLAGS
14* configure: Disable Xevie and Xprint by default
15* Add support for various new constructs in the XML schema
16* Make some functions also accept connections in an error state
17* Never return NULL from xcb_get_setup()
18* Use Requires.private in .pc files to avoid overlinking
19* Fix align-pads for switches which start at unaligned positions
20* Use anonymous structs for some nested structs
21* Also generate accessors for variable-sized events and requests
22* Improved python3 compatibility
23* Generate C99 initializers instead of comments
24* Various simplifications to the python code
25* Fix line breaks in xcb-requests manual page
26* Always close FDs in xcb_send_fd()
27* Fix thread-safety issues with FD passing
28* Add xcb_send_request_with_fds() and xcb_send_request_with_fds64()
29* Fix endless loop with too many outstanding FDs to send
30* Link with winsock library on MinGW
31* Disable some unfinished API for some server-side code by default
32* Use align-offsets computed by xcb-proto instead of low bits of pointers
33* Fix iterator interaction with align padding
34* Stop serializing padding by default
35* Increase unix socket send buffer to at least 64KiB
36
37Release 1.11.1 (2015-09-06)
38===========================
39* Expose 64-bit sequence numbers for XLib
40* Fix some hangs related to xcb_wait_for_special_event()
41
42Release 1.11 (2014-08-01)
43=========================
44* Force structures with 64-bit fields to be packed
45* Add support for <pad align="n">
46* Use X.org's build machinery from xorg-macros
47* Fix leak with xcb_disconnect() and connections in an error state
48* Make xcb_disconnect(NULL) safe
49* Use less #include statements in generated code
50* Automatically validate the Requires lines in our .pc.in files
51* Fix a race that resulted in a failed assertion
52* Improve launchd secure socket support
53* Improve API documentation
54* Remove trailing whitespaces
55* c_client.py: prefix all monkey-patched fields with c_
56* c_client.py: make the man page output deterministic
57* c_client.py: remove useless generated comments
58* xcb.h: add 'struct' before xcb_setup_t, xcb_query_extension_reply_t
59
60Release 1.10 (2013-12-22)
61=========================
62* Bump libxcb-xkb SONAME due to ABI break introduced in 1.9.2
63* Enable libxcb-xkb by default
64* Bump libxcb-sync SONAME
65* c_client.py: Fix _sizeof() functions
66* c_client.py: Do not create pointers in unions
67* c_client.py: Always initialize xcb_align_to
68* Re-introduce xcb_ge_event_t (deprecated, xcb_ge_generic_event_t should be
69  used instead)
70* Fix alignment issues in FD passing code
71* Fix poll() if POLLIN == ROLLRDNORM|POLLRDBAND
72* Use /usr/spool/sockets/X11/ on HP-UX for UNIX sockets
73* Make xsltproc optional
74
75Release 1.9.3 (2013-11-07)
76==========================
77* Check if we need to define _XOPEN_SOURCE for struct msghdr.msg_control
78* Add configure option to enable or disable fd passing with sendmsg
79* Switch to using the CMSG_* macros for FD passing
80* Initialize automake earlier (bugfix for #66413)
81
82Release 1.9.2 (2013-11-07)
83==========================
84* Add Present extension
85* Add DRI3 library
86* Add event queue splitting
87* Add support for receiving fds in replies
88* Add xcb_send_fd API
89* Remove xcb_ge_event_t from xcb.h
90* c_client.py: Inject full_sequence into GE events
91* c_client.py: Handle multiple expr. in a bitcase
92
93Release 1.9.1 (2013-05-30)
94==========================
95* Fix python code to work with python-3
96* Security fix for integer overflow in read_packet() [CVE-2013-2064]
97
98Release 1.9 (2012-10-05)
99========================
100* Always include "config.h" at the start of all C source files.
101* Add AC_USE_SYSTEM_EXTENSIONS to allow use of more system functionality
102* Return connection failure if display string specifies non-existent screen
103* c_client: Fix parallel-make issue creating 'man' directory
104* xcb_connect: launchd: Don't fall back on tcp if $DISPLAY is a path to a launchd socket
105* c_client.py: generate manpages
106* Allow xcb_send_request with >MAX_IOV iovecs
107* Add a .gitignore for src/man/
108* Fix a multi-thread deadlock
109
110Release 1.8.1 (2012-03-09)
111==========================
112- Fix a busy loop on BSD and Mac OS
113- Bump xcb-proto requirement
114- Fallback to TCP if no protocol is specified and the UNIX connection fails
115- Update use of error_connection under WIN32 to _xcb_conn_ret_error()
116- Fix build of xcb_auth.c with XDMCP on WIN32
117- Revert "Fix include order with Xdmcp on WIN32"
118- darwin: Use read(2) rather than recv(2)
119- Add xkb_internals and xkb_issues to EXTRA_DIST.
120
121Release 1.8 (2012-01-11)
122========================
123- xcb_disconnect: call shutdown() to force a disconnect
124- Use special path to sockets when running under Solaris Trusted Extensions
125- Remove unused DECnet code
126- Add #include <sys/socket.h> to xcb_conn.c
127- Make launchd code in xcb_util.c match surrounding code indent levels
128- If protocol is "unix", use a Unix domain socket, not TCP
129- Added more error states and removed global error_connection
130- Handle XGE events with the "send event" flag
131- added xcb_sumof() with restriction to uint8_t
132- xkb: updated configure.ac/Makefile.am
133- xkb: added pkg config file
134- special case 'intermixed variable and fixed size fields': fixed reply side, needs testing
135- added accessors for special cases
136- Add support for building with Python 3
137- Insert, not append explicit xcbgen dir python path
138- xcb_request_check: Sync even if an event was read for this sequence.
139- _xcb_conn_wait: Shut down the connection on unexpected poll() events.
140- xcb_send_request: Send all requests using a common internal send_request.
141- xcb_request_check: Hold the I/O lock while deciding to sync.
142- xcb_discard_reply: Simplify by re-using poll_for_reply helper.
143- xcb_in: Use 64-bit sequence numbers internally everywhere.
144- Enable AM_SILENT_RULES on automake 1.11 or newer.
145- Factor reader_list management out of wait_for_reply.
146- Dequeue readers that can't receive any new responses.
147- Delete the old c-client.xsl.
148- Keep ALIGNOF definition out of the public namespace.
149- darwin: Don't use poll() when expected to run on darwin10 and prior
150- Add Win32
151- Allow disconnecting connections that are in error state.
152- Make xcb_take_socket keep flushing until idle
153- Support pre-IPv6 systems (without getaddrinfo)
154- Drop AI_ADDRCONFIG when resolving TCP addresses
155- xcb_auth: Fix memory leak in _xcb_get_auth_info.
156- Don't emit out-of-module sizeof definitions
157- Clean up a couple of warnings in xprint
158- Prevent reply waiters from being blocked.
159- Prevent theoretical double free and leak on get_peer_sock_name.
160- Introduce a variant of xcb_poll_for_event for examining event queue.
161- xcb_take_socket: Document sequence wrap requirements
162- Compute alignment correctly
163- Fix a dead-lock due to xcb_poll_for_reply
164
165Release 1.7 (2010-08-13)
166========================
167- Always wake up readers after writing
168- Get rid of PATH_MAX and MAXPATHLEN
169- Add ~ operator support in code generator
170- xcb_open: Improve protocol/host parsing
171- xcb_connect_to_display_with_auth_info: Fix memory leak
172- Report which extensions are being built
173
174Release 1.6 (2010-04-09)
175========================
176- darwin: xnu doesn't support poll on ttys on the master side
177- Fix descriptor leak on memory error path
178- Support xcb_discard_reply
179- Open the X11 socket with close-on-exec flag
180- Fix authentication on hpux and Hurd
181
182Release 1.5 (2009-12-03)
183========================
184- setsockopt(SO_KEEPALIVE) on TCP display connections
185- Add DRI2 support
186- Fix check dependency
187- Cygwin build fix: Add -no-undefined to libtool flags
188
189Release 1.4 (2009-07-15)
190========================
191* Add majorCode, minorCode and resourceID fields to X generic error
192* Fix precedence bug: wrong length for big-requests preceded by sync
193* Fix libxcb-randr version info
194
195Release 1.3 (2009-05-29)
196========================
197* Copy full IPv4 mapping (Bug #20665)
198* Fix XID allocation
199* Use poll() instead of select() when available
200* Fix local socket connection on Hurd
201* Fix XDM-AUTHORIZATION-1
202* Disable Nagle on TCP socket
203
204Release 1.2 (2009-02-17)
205========================
206* Stop packaging auto-generated C files into tarball.
207
208Release 1.1.93 (2008-12-11)
209===========================
210Enhancements:
211* Apple: Enable support for launchd DISPLAY socket
212* Treat XIDs the same as other cardinal values.
213
214Release 1.1.92 (2008-11-01)
215===========================
216Enhancements:
217* Added small fix to support trailing fixed fields; also warning for non-pad fixed fields
218* Fixed overly aggressive warning about fixed field following variable
219* Added generation of extern "C" for compatibility with C++
220* Remove libxcb-xlib and xcbxlib.h.
221* Inline _xcb_lock_io, _xcb_unlock_io, and _xcb_wait_io.
222* Track 64-bit sequence numbers internally.
223* Use sequence number ranges in pending replies
224* Remove duplicate XCB_EXTENSION calls for Composite extension
225* Factorize m4 macros and add one to set X extensions
226* Allow compile-time setting for XCB queue buffer size
227* Support handing off socket write permission to external code.
228* Add support for the abstract socket namespace under Linux
229
230Bug fixes:
231* Fix tiny memory leak in read_packet
232* Fix some fd leaks in _xcb_open_*()
233
234Release 1.1 (2007-11-04)
235========================
236
237This release requires xcb-proto 1.1, due to the addition of the
238extension-multiword attribute to the XML schema.
239
240This release contains several important bug fixes, summarized below. It
241also contains a patch much like Novell's libxcb-sloppy-lock.diff.
242Rationale from the commit message follows. The patch and this rationale
243were authored by Jamey Sharp <jamey@minilop.net>, with agreement from
244Josh Triplett <josh@freedesktop.org>.
245
246    I strongly opposed proposals like this one for a long time.
247    Originally I had a very good reason: libX11, when compiled to use
248    XCB, would crash soon after a locking correctness violation, so it
249    was better to have an informative assert failure than a mystifying
250    crash soon after.
251
252    It took some time for me to realize that I'd changed the libX11
253    implementation (for unrelated reasons) so that it could survive most
254    invalid locking situations, as long as it wasn't actually being used
255    from multiple threads concurrently.
256
257    The other thing that has changed is that most of the code with
258    incorrect locking has now been fixed. The value of the assert is
259    accordingly lower.
260
261    However, remaining broken callers do need to be fixed. That's why
262    libXCB will still noisily print a stacktrace (if possible) on each
263    assertion failure, even when assert isn't actually invoked to
264    abort() the program; and that's why aborting is still default. This
265    environment variable is provided only for use as a temporary
266    workaround for broken applications.
267
268Enhancements:
269* Print a backtrace, if possible, on locking assertion failures.
270* Skip abort() on locking assertions if LIBXCB_ALLOW_SLOPPY_LOCK is set.
271* xcb_poll_for_event: Return already-read events before reading again.
272* Output a configuration summary at the end of ./configure.
273
274Bug fixes:
275* Don't hold the xlib-xcb lock while sleeping: that allows deadlock.
276* Allow unix:<screen> style display names again.
277* Bug #9119: test xcb_popcount
278* Fix unit tests for FreeBSD
279* NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.
280* Require libXau >= 0.99.2; earlier versions have a broken .pc file
281* Use substitition variables in xcb-xinerama.pc.in
282* Update autogen.sh to one that does objdir != srcdir
283* Add tools/* and autogen.sh to EXTRA_DIST.
284* Doxygen can now be fully disabled if desired.
285
286Documentation improvements:
287* Many fixes and updates to the tutorial.
288* Iterators, requests, and replies get partial Doxygen documentation.
289
290
291Release 1.0 (2006-11-23)
292========================
293
294The "Thanksgiving" release: We feel thankful to have it released.  Five years
295have passed since XCB's initial commit on September 3rd, 2001:
296    <http://gitweb.freedesktop.org/?p=xcb.git;a=commit;h=09e54c4a3c>
297
298* Support IPv6.  XCB now supports displays with IPv6 addresses, with or without
299  enclosing square brackets, or with hosts which resolve to IPv6 addresses, by
300  using getaddrinfo instead of gethostbyname, and by including support for
301  authentication for such connections.  This allows such displays as "::1:1.1".
302
303* XCB now uses the libpthread-stubs, to properly support optional use of
304  pthreads even on platforms which do not have all the necessary pthread stubs
305  in libc or otherwise available by default.
306
307* Switch from the old AM_PATH_CHECK macro to pkg-config.  check 0.9.4 is now
308  required to build XCB's unit tests.  The version that we were requiring was
309  not actually new enough to let our unit tests compile, and the AM_PATH_CHECK
310  macro is now considered deprecated.  We know that versions of check using
311  pkg-config are new enough to work, and the check dependency was optional
312  anyway, so we've dropped support for older versions.
313
314* Provide a xcb_prefetch_maximum_request_length counterpart to
315  xcb_get_maximum_request_length.
316
317* Fix Bug #5958: zero out padding bytes in requests.
318
319* Change xcb_connect to pass the display number to _xcb_get_auth_info, which
320  passes it to get_authptr.  This allows get_authptr to stop hacking the
321  display number out of the sockaddrs of various address families, such as
322  port - X_TCP_PORT, or the number after the last X in the UNIX socket path.
323
324* Remove --with-opt and --with-debug options from configure.ac; configure
325  supports the use of custom CFLAGS, so please use that instead.
326
327* Reove support for the <localfield> tag in protocol descriptions, since they
328  no longer use it, and since new protocol descriptions should not need it
329  either.
330
331* xcb-proto has no libraries or headers, so don't use XCBPROTO_CFLAGS or
332  XCBPROTO_LIBS.
333
334* XCB builds which use xdmcp now include it in Requires.private, to support
335  static linking.
336
337* Replace "long" with uint32_t when used for a 32-bit quantity
338
339* Various enhancements to the generation of documentation with Doxygen:
340  * Check for doxygen in configure.ac
341  * Fix some Doxygen warnings.
342  * Install documentation.
343  * Handle out-of-tree builds, with srcdir != builddir.  xcb.doxygen now gets
344    generated from xcb.doxygen.in, so that it can use top_builddir and
345    top_srcdir to find source and to output documentation.
346  * Fill in PROJECT_NUMBER from @VERSION@, now that we have it readily
347    available via autoconf.
348
349
350Release 1.0 RC3 (2006-11-02)
351============================
352
353Note: Version 0.9.4 of the test suite tool "check" provides a broken
354version of the AM_PATH_CHECK macro, which causes autoconf to fail due to
355insufficient quoting on the macro names it prints in its deprecation
356message. We have written a patch to fix this problem, available at:
357<http://bugs.debian.org/cgi-bin/bugreport.cgi/check-m4-am-path-check-use-quadrigraphs-in-macro-names-to-unbreak-autoconf.patch?bug=395466;msg=20;att=1>
358Version 0.9.4-2 of the Debian package for check includes this patch.
359Users of other distributions who want to re-autotool libxcb will need to
360apply this patch, use an older version of check, or wait for a fixed
361upstream version. This bug does not affect users who use the distributed
362tarballs and do not re-autotool.
363
364* Add library support for xcb-xinerama, using new protocol description
365  from xcb-proto.
366* In the generated protocol code, define and use constants for opcode
367  numbers rather than hard-coding them.
368* In the API conversion script, match only XCB-namespaced XID generators
369  when converting to xcb_generate_id.
370* Quit treating xproto specially in Makefile.am: handle it like all the
371  extensions.
372* Generate Doxygen documentation comments in the protocol stubs, and
373  provide a Doxygen config file for building HTML documentation for XCB.
374* Add note to xcbxlib.h that nothing except Xlib/XCB should use it.
375* Extend test suite to test xcb_parse_display with NULL argument and
376  display in $DISPLAY.
377
378
379Release 1.0 RC2 (2006-10-07)
380============================
381
382API changes
383-----------
384
385In our announcement of XCB 1.0 RC1, we proposed two API changes for
386community feedback:
387
388    We would greatly appreciate API review in this final release
389    candidate period. We've had some limited feedback that our attempts
390    to impose static type safety on XIDs in C pose more a hindrance than
391    a help, so we would appreciate discussion over whether this
392    constitutes a "serious issue with the API". Some question also
393    remains of whether xcb_poll_for_event should have the out-parameter
394    'error', now that XCB has a more uniform mechanism for reporting
395    connection errors. Speak now on these points or leave us alone. ;-)
396
397Since we've received feedback agreeing with our proposed changes, and no
398objections or requests to keep the existing API, we made both changes
399and bumped the soname to libxcb.so.1.0.0 in preparation for the release
400of XCB 1.0.
401
402* Remove XID wrapper structures and replace them with uint32_t typedefs.
403  XID union types like xcb_drawable_t and xcb_fontable_t also become
404  uint32_t typedefs. The API conversion script now replaces xcb_*_new
405  with calls directly to xcb_generate_id.  This change makes
406  xcb_generate_id part of the client API rather than the extension API,
407  so move xcb_generate_id from xcbext.h to xcb.h.
408
409* Remove the 'int *error' out-parameter for xcb_poll_for_event. 
410  xcb_poll_for_event now shuts down the xcb_connection_t on fatal
411  errors; use xcb_connection_has_error to check.
412
413The Xlib-specific API in libxcb-xlib also changed:
414
415* Stop exposing the XCB IO lock for Xlib's benefit, by removing
416  xcb_get_io_lock from the Xlib-specific XCB API; instead, libxcb-xlib
417  now provides xcb_xlib_lock and xcb_xlib_unlock.
418
419Code generation changes
420-----------------------
421
422* The code generator no longer implicitly imports xproto for extensions.
423  xcb-proto 1.0 RC2 includes the corresponding change to explicitly
424  import xproto in extensions that need it
425
426* The generated protocol headers now declare "struct foo", "union foo"
427  or "enum foo", not just the typedef "foo" of an unnamed
428  struct/union/enum type.
429
430Bug Fixes
431---------
432
433* Make Plan 7 'checked' requests work correctly.
434
435Documentation improvements
436--------------------------
437
438* Document xcb_generate_id.
439
440* Tutorial enhancements.
441
442
443Release 1.0 RC1 (2006-09-25)
444============================
445
446The Great XCB Renaming
447----------------------
448
449Rename API to follow a new naming convention:
450
451* XCB_CONSTANTS_UPPERCASE_WITH_UNDERSCORES
452* xcb_functions_lowercase_with_underscores
453* xcb_types_lowercase_with_underscores_and_suffix_t
454* expand all abbreviations like "req", "rep", and "iter"
455
456Word boundaries for the names in the protocol descriptions fall:
457
458* Wherever the protocol descriptions already have an underscore
459* Between a lowercase letter and a subsequent uppercase letter
460* Before the last uppercase letter in a string of uppercase letters
461  followed by a lowercase letter (such as in LSBFirst between LSB and
462  First)
463* Before and after a string of digits (with exceptions for sized types
464  like xcb_char2b_t and xcb_glx_float32_t to match the stdint.h
465  convention)
466
467Also fix up some particular naming issues:
468
469* Rename shape_op and shape_kind to drop the "shape_" prefix, since
470  otherwise these types end up as xcb_shape_shape_{op,kind}_t.
471* Remove leading underscores from enums in the GLX protocol description,
472  previously needed to ensure a word separator, but now redundant.
473
474This renaming breaks code written for the previous API naming
475convention. The scripts in XCB's tools directory will convert code
476written for the old API to use the new API; they work well enough that
477we used them to convert the non-program-generated code in XCB, and when
478run on the old program-generated code, they almost exactly reproduce the
479new program-generated code (modulo whitespace and bugs in the old code
480generator).
481
482Authors: Vincent Torri, Thomas Hunger, Josh Triplett
483
484In addition to the API renaming, the library SONAMEs have changed to
485libxcb.so and libxcb-extname.so. The library major version remains at 0,
486to become version 1 before 1.0 is released; the SONAME lowercasing means
487that this will not conflict with XCB 0.9 libraries.
488
489The header files have moved from /usr/include/X11/XCB/ to
490/usr/include/xcb/. The XML-XCB protocol descriptions have moved to
491/usr/share/xcb, with extension descriptions no longer relegated to an
492extensions/ subdirectory. The API conversion script api_conv.pl will fix
493references to the header files, and packages using pkg-config will
494automatically use the new library names.
495
496Error handling Plan 7
497---------------------
498
499All request functions now come in an "unchecked" and "checked" variant.
500The checked variant allows callers to handle errors inline where they
501obtain the reply, or by calling xcb_request_check for requests with no
502reply. The unchecked variant uses the event queue for errors. Requests
503with replies default to checked, because the caller must already make a
504function call to retrieve the reply and can see the error at that time;
505the unchecked variant uses the suffix _unchecked. Requests without
506replies default to unchecked, because the caller will not necessarily
507expect to handle a response, and the checked variant uses the suffix
508_checked.
509
510Connection error handling
511-------------------------
512
513Fatal connection errors now put the xcb_connection_t object into an
514error state, at which point all further operations on that connection
515will fail. Callers can use the new xcb_connection_has_error function to
516check for this state in a connection. Functions that return a
517connection, such as the xcb_connect function, may instead return an
518xcb_connection_t already in an error state.
519
520In the future we expect to add additional API for getting more
521information about the error condition that caused the connection to get
522into an error state.
523
524Smaller API changes
525-------------------
526
527All functions that have been marked 'deprecated' up to now have been
528removed for this release. After XCB 1.0 is released, functions marked
529'deprecated' will be preserved until the end of time to maintain
530compatibility.
531
532XCB no longer provides a sync function. Most callers of this function
533should use xcb_flush instead, which usually provides the intended
534functionality and does not require a round-trip to the server. If you
535really need this functionality, either use xcb_get_input_focus like sync
536used to do, or use the xcb_aux_sync function from the xcb-aux library in
537xcb-util. However, note that we do not consider the libraries in
538xcb-util remotely stable yet.
539
540XCB no longer provides xcb_[extension_name]_init functions for each
541extension. These functions previously caused XCB to issue and process a
542QueryExtension request. Callers should now directly call
543xcb_get_extension_data on the xcb_[extension_name]_id, or use
544xcb_prefetch_extension_data if they do not need to force a round-trip
545immediately.
546
547The compatibility functions in xcbxlib.h, provided solely for use by
548Xlib/XCB, now exist in a separate library libxcb-xlib. We don't want to
549have to change the libxcb soname if we later change or remove the Xlib
550compatibility functions, and nothing except Xlib/XCB should ever use
551them. (Applications which use Xlib/XCB do not need this library either;
552Xlib/XCB only uses it internally.)
553
554The descriptions of several extensions have been updated to match the
555latest versions implemented in the X.org X server.
556
557GIT Repository split
558--------------------
559
560Previously, several XCB-related projects all existed under the umbrella
561of a single monolithic GIT repository with per-project subdirectories.
562We have split this repository into individual per-project repositories.
563
564Josh Triplett and Jamey Sharp wrote a tool called git-split to
565accomplish this repository split. git-split reconstructs the history of
566a sub-project previously stored in a subdirectory of a larger
567repository. It constructs new commit objects based on the existing tree
568objects for the subtree in each commit, and discards commits which do
569not affect the history of the sub-project, as well as merges made
570unnecessary due to these discarded commits.
571
572We would like to acknowledge the work of the gobby team in creating a
573collaborative editor which greatly aided the development of git-split
574(as well as these release notes).
575
576Build and implementation fixes
577------------------------------
578
579XCB no longer needs proto/x11 from X.org; the XCB header xproto.h
580provides the definitions from X.h, named according to XCB conventions.
581
582XCB should now build with non-GNU implementations of Make.
583
584XCB properly handles 32-bit wrap of sequence numbers, and thus now
585supports issuing more than 2**32 requests in one connection.
586
587Fixed bugs #7001, #7261.
588