summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-12-20Add xcb-ge for the GeneralEvents extensiongeDaniel Stone3-0/+13
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2010-12-20Handle GenericEvents with the "send event" flag setCarlos Garnacho1-1/+1
With XGE 1.1 and above, GenericEvents may be sent with the 0x80 flag set, so make xcb handles these correctly, reading the payload of GenericEvents even if the flag is set. Signed-off-by: Carlos Garnacho <carlosg@gnome.org> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Harris <pharris@opentext.com>
2010-06-20configure.ac: Report which extensions are being built.Vincent Torri1-0/+25
I was surprised to see that xinput was not installed. Looking at configure.ac, it seems that it is disabled by default. Maybe configure should output the status of the different extensions.
2010-06-15xcb_connect_to_display_with_auth_info: Fix memory leakPauli Nieminen1-10/+17
protocol and host are allocated in _xcb_parse_display but ownership of them is passed to the caller. They have to be freed in xcb_connect_to_display_with_auth_info. Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2010-06-15_xcb_parse_display: Fix error pathPauli Nieminen1-5/+14
xcb_parse_display claims that there is no side effects when failing. That requires _xcb_parse_display to free the memory in failure case. Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2010-05-14xcb_open: Improve protocol/host parsingJeremy Huddleston1-12/+18
Support scenarios where host is not set and protocol is. eg: DISPLAY=tcp/:0 as well as the "inet" and "inet6" alias for "tcp" for compatability with Xlib Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2010-05-14Add ~ operator support in code generatorMarcin Kościelnicki1-1/+3
Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-04-30Fix GCC error on undeclared variable when not using abstract socketArnaud Fontaine1-2/+0
This is a regression found by tinderbox in previous commit: xcb_util.c: In function '_xcb_open': xcb_util.c:213: error: 'fd' undeclared (first use in this function)
2010-04-30Get rid of PATH_MAX and MAXPATHLENArnaud Fontaine2-16/+83
There could be no upper limit on the length of a path according to POSIX, therefore these macros may not be defined at all on some systems (such as GNU Hurd). Signed-off-by: Arnaud Fontaine <arnau@debian.org> Reviewed-by: Peter Harris <pharris@opentext.com>
2010-04-23Use limits.h instead of syslimits.hJeremy Huddleston1-1/+1
Regression found by tinderbox in 89b3485dadef47a30264a5bf150b96522183376b xcb_util.c:31:27: error: sys/syslimits.h: No such file or directory xcb_util.c: In function '_xcb_open': xcb_util.c:148: error: 'PATH_MAX' undeclared (first use in this function) Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-23Reworked launchd support to work better with _xcb_parse_displayJeremy Huddleston1-10/+26
Fixes: http://xquartz.macosforge.org/trac/ticket/390 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-17Always wake up readers after writing.Jamey Sharp3-12/+15
Since writers must make sure they read as well, threads may have gone to sleep waiting for the opportunity to read. The writer must wake up one of those readers or the application can hang. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Josh Triplett <josh@freedesktop.org>
2010-04-17Fix strict-aliasing warning when getting generic event length.Jamey Sharp1-3/+1
xcb_ge_event_t has its length field in the same place that xcb_generic_reply_t does, so there's no need to cast the generic reply. Signed-off-by: Jamey Sharp <jamey@minilop.net> Cc: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Julien Danjou <julien@danjou.info>
2010-04-17Delete a useless level of indirection from _xcb_out_send's parameters.Jamey Sharp3-13/+9
_xcb_out_send needs _xcb_conn_wait to store back its progress so it can be reinvoked to pick up where it left off---but then _xcb_out_send guarantees that it leaves either an empty output vector or a shut-down connection, so *its* callers never care how much progress was made. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Josh Triplett <josh@freedesktop.org>
2010-04-09Release libxcb 1.6Julien Danjou2-1/+9
2010-04-08Fail if fd is too big and poll() is not availableRémi Denis-Courmont1-0/+8
Depending on the process file limit, a file descriptor can be larger than the capacity of fd_set. There is no portable way to create a large enough fd_set at run-time. So we just fail if the file descriptor number is too high and poll() is not available. Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-03-13Fix authentication on hpux and HurdSamuel Thibault1-2/+2
libxcb's 010e5661 (Fix XDM-AUTHORIZATION-1 (bug #14202)) mistakenly inverted a few lines of code, making local socket authentication fail on hpux and Hurd: when getpeername fails, sockname needs to be initialized by getsockname before its address family can be checked. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-02-17Open the X11 socket with close-on-exec flagRémi Denis-Courmont1-4/+21
This saves the X11 connection from leaking into children processes. On Linux, this is fully thread-safe using SOCK_CLOEXEC. On other systems, there is a small race condition. Signed-off-by: Julien Danjou <julien@danjou.info>
2010-02-11Support xcb_discard_replyPeter Harris2-0/+126
This function is useful for dynamic language garbage collectors. Frequently a GC cycle may run before you want to block wainting for a reply. This function is also marginally useful for libxcb apps that issue speculative requests (eg. xlsclients). Reviewed-by: Jamey Sharp <jamey@minilop.net> Tested-by: Eamon Walsh <efw@eamonwalsh.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2010-01-07xcb_connect_to_fd: fix descriptor leak on memory error pathRémi Denis-Courmont1-1/+3
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-11configure.ac: Fix a typo on the last commit.Jeremy Huddleston1-1/+1
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-12-11darwin: xnu doesn't support poll on ttys on the master side.Jeremy Huddleston1-3/+2
<rdar://problem/7360546> Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-12-08Tutorial code fixJim Ingram1-2/+2
Accessed elements of names[] after freeing them in the first example. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-05DRI2 extension requires xcb-proto 1.6 or newerRémi Cardona1-1/+1
Signed-off-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-03build: simplify extension buildingJulien Danjou1-67/+5
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-03Release libxcb 1.5Julien Danjou2-1/+8
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-02setsockopt(SO_KEEPALIVE) on TCP display connections.Adam Jackson1-0/+1
This matches xtrans behaviour in SocketINETConnect, and makes it so apps don't hang forever if their display dies. Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-10-19Add DRI2 support. (v2)Eric Anholt5-0/+27
v2: Build fix from jcristau.
2009-10-15Fix typo in the tutorial.Eric Anholt1-1/+1
2009-09-18Don't build docs if 'dot' is not found Signed-off-by: Paulo R. Zanoni ↵Paulo R. Zanoni1-0/+5
<pzanoni@mandriva.com>
2009-08-31Fix check dependencyJulien Cristau1-1/+1
Bugzilla #21992 make -j check fails because the check-local rule gets executed before the tests actually ran, so CheckLog*.xml doesn't exist. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31Cygwin build fix: Add -no-undefined to libtool flagsYaakov Selkowitz1-23/+23
-no-undefined is needed to tell libtool a shared library can be built on platforms which require all references to be statisfied at link time. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-15Release libxcb 1.4Arnaud Fontaine2-1/+7
2009-07-15Add majorCode, minorCode and resourceID fields to X generic errorArnaud Fontaine1-1/+5
2009-07-06Fix precedence bug: wrong length for big-requests preceded by sync.Jamey Sharp1-1/+1
Also replace excessively clever use of bitwise OR with equivalent addition. Reported-by: Geoffrey Li <geoffrey@seitopos.com> Signed-off-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Josh Triplett <josh@joshtriplett.org>
2009-05-29Fix libxcb-randr version infoJulien Cristau1-1/+1
The SONAME shouldn't have been bumped in 1.3, only new symbols were added. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-29Release libxcb 1.3Julien Danjou2-1/+10
2009-05-26Disable Nagle on TCP socketelupus1-0/+4
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-25Store xcbproto version libxcb was compiled withBob Ham2-0/+5
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-09depends on recent xcb-proto and bump version of randrJulien Danjou2-2/+2
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-21Fix XDM-AUTHORIZATION-1 (bug #14202)Bart Massey1-10/+28
With this patch, we know use correctly the socket address or peer address for authentication purpose. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10util: remove useless strlen calls from decnet openingJulien Danjou1-4/+6
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10util: merge common code for xcb_connectJulien Danjou1-34/+16
Many code was duplicated between xcb_connect_to_display_with_auth_info and xcb_connect(). We merge both, since the difference is just about the xcb_auth_info_t pointer being supplied, or not. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10util: open_abstract gets filelen as parametersJulien Danjou1-6/+11
That saves us from a couple of strlen() calls. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10auth: use snprintf() return valueJulien Danjou2-2/+11
That save us from a strlen(). Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10auth: precompute authnameslenJulien Danjou1-8/+14
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-09darwin: Don't use poll() on versions of darwin before darwin10Jeremy Huddleston1-1/+8
2009-04-06Local socket connections do not work on hurd-i386Samuel Thibault1-1/+8
Local socket connections currently do not work on hurd-i386 because xcb_auth calls getpeername() on the client socket, but hurd-i386 does not implement anything in that case (I actually wonder what reasonable value could be returned). In such case the xcb code does not actually need the peer name anyway. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-30use poll() instead of select() when availableMichael Ost3-2/+52
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-28kludgily hand-merged xid fixesBart Massey1-12/+32
Signed-off-by: Bart Massey <bart@cs.pdx.edu> Signed-off-by: Julien Danjou <julien@danjou.info>