summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-10-12Check for malloc failure in two places.HEADmasterJoshua Phillips2-0/+4
In xcb_key_symbols_alloc. In xcb_render_util_composite_text_stream. Signed-off-by: Julien Danjou <julien@danjou.info>
2010-08-03Ensure get_wm_class_from_reply returns a valid C-stringPeter Harris1-1/+10
Fixes bugzilla #29373 https://bugs.freedesktop.org/show_bug.cgi?id=29373 Tested-by: Uli Schlachter <psychon@znc.in> Signed-off-by: Peter Harris <pharris@opentext.com>
2010-06-24Delete callback-based APIs for events, properties, and replies.Jamey Sharp20-1004/+9
They are poorly designed and not terribly useful. I wrote the original versions of these libraries for demonstration purposes and would like to actively discourage anyone from actually using them. After deleting the callback-based APIs, there was nothing interesting left in property or reply, so those libraries are deleted outright. The event library is no longer particularly related to event handling, but that's a problem for another commit. The icccm library had some simple hooks for integrating with the property library, which are precisely as useful as the property library itself, so I deleted them too. (Arnaud suggested this in <sa5ocib84hf.fsf@Orfeo.duckcorp.org>.) Since the icccm and event libraries have changed interfaces, this commit bumps their SONAME versions. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Acked-by: Julien Cristau <jcristau@debian.org>
2010-06-24test.xbm is part of the source code for test_bitmap.c.Jamey Sharp1-1/+1
This fixes distcheck. Reported-by: Chris Ball <cjb@laptop.org> Signed-off-by: Jamey Sharp <jamey@minilop.net>
2010-06-24icccm does not depend on xcb-proto, only generated headers in xcb.Jamey Sharp2-2/+1
And xcb.h includes xproto.h, so icccm.c needn't include anything extra. The configure script does still need to check which version of xcb-proto libxcb was built with to ensure that the predefined atoms are available at xcb-icccm build time. Signed-off-by: Jamey Sharp <jamey@minilop.net>
2010-06-24Delete redundant core-protocol error codes.Jamey Sharp1-45/+0
XCB already defines the error codes, though with unfortunate names. The following sed replacements should correct any code that was using these definitions: s/\<XCB_EVENT_ERROR_SUCCESS\>/0/g s/\<XCB_EVENT_ERROR_BAD_COLOR\>/XCB_COLORMAP/g s/\<XCB_EVENT_ERROR_BAD_GC\>/XCB_G_CONTEXT/g s/\<XCB_EVENT_ERROR_BAD_/XCB_/g Signed-off-by: Jamey Sharp <jamey@minilop.net>
2010-06-24Ensure that xcb-image sample apps get built.Jamey Sharp1-1/+1
Otherwise nobody will notice if they bitrot. Signed-off-by: Jamey Sharp <jamey@minilop.net>
2010-06-24Close leak in xcb_get_text_property_reply when reply->type == XCB_NONEAlan Coopersmith1-1/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-23Rename XCB_EVENT_ERROR_SUCESS to XCB_EVENT_ERROR_SUCCESSAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Jamey Sharp <jamey@minilop.net>
2010-06-23Fix typos in various header commentsAlan Coopersmith4-7/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Jamey Sharp <jamey@minilop.net>
2010-03-29icccm: fix inconsistency in prototypes of WM_PROTOCOLS settersArnaud Fontaine2-14/+14
2010-03-29icccm: add WM_COLORMAP_WINDOWSArnaud Fontaine2-0/+170
2010-03-29icccm: allow to set the encoding format for TEXT propertiesArnaud Fontaine3-43/+59
2010-03-29icccm: add missing setters for WM_CLASS and WM_TRANSIENT_FOR propertiesArnaud Fontaine2-0/+85
2010-03-15xcb_get_text_property_reply() reply type could be XCB_NONE if the property ↵Arnaud Fontaine1-1/+1
is not present
2010-03-11Validate size of wm_hints and wm_size_hintsPeter Harris2-10/+16
Without these checks, we can overflow the buffer or divide by zero. Signed-off-by: David Coppa <dcoppa@gmail.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2010-02-11Add AM_MAINTAINER_MODE for vendorsArnaud Fontaine1-0/+1
2009-12-13icccm: atoms previously defined in xcb_atom are now defined in xprotoArnaud Fontaine4-47/+49
2009-11-09Deprecate namespaceless pre-defined atomsPeter Harris1-1/+11
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-10-21Make xcb_icccm.h use the same type as icccm.c for gravity parameterAlan Coopersmith1-1/+1
Fixes compiler error when building with Sun compilers due to redefining argument types of xcb_size_hints_set_win_gravity Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-20Update autogen.sh to one that does builddir != srcdirJon TURNEY1-1/+10
2009-10-20icccm: fix reply->format checkJulien Danjou1-4/+2
We need to check reply->format before using it, or we can end up dividing by 0. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-25Bump version to 0.3.7Arnaud Fontaine1-1/+1
2009-09-25Add missing return valuesArnaud Fontaine2-93/+116
2009-08-24icccm: add xcb_get_wm_protocols_from_reply0.3.6Julien Danjou2-9/+25
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-22icccm: typo fixJulien Danjou1-1/+1
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-22xcb-property: fix bad commentJulien Danjou1-1/+1
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-03Bump version to 0.3.6Arnaud Fontaine1-1/+1
2009-08-03event: fix compiler warning due to missing include for memsetArnaud Fontaine1-0/+1
2009-08-03event: update to libxcb 1.4Arnaud Fontaine2-3/+1
Remove useless macros to get error information because libxcb 1.4 now provides additional fields (major_opcode, minor_opcode and resource_id) like Xlib.
2009-06-25icccm: fix atoms_len with new libxcbJulien Danjou1-1/+1
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-03Check for ssize_t in configure for xcb-util-common.hArnaud Fontaine2-1/+9
2009-06-03icccm: use xcb_gravity_t when possible and cosmetic changesArnaud Fontaine1-7/+11
2009-05-30Typo in configure.acMikhail Gusarov1-1/+1
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-29Release xcb-util 0.3.50.3.5Julien Danjou1-1/+1
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-25Add a check on xproto version libxcb was compiled withBob Ham2-1/+193
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-21wrapped xcb_atom.h for C++ per bug report of <comick@autistici.org>Bart Massey1-0/+8
2009-05-15Zero out handlers list in xcb_event_handlers_initMikhail Gusarov1-0/+1
xcb_event_handle relies on the fact that handler for non-handled event is NULL. Initialize handlers in xcb_event_handlers_init to avoid calling function by uninitialized pointer. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Peter Harris <pharris@opentext.com>
2009-05-09icccm: fix compatibility with libxcb > 1.2Julien Danjou2-9/+9
The get property value proto changed so we do not have to worry about formats. Reflect that change. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-23Make sure m4 supports -I flag, if not, try finding gnu m4Alan Coopersmith1-2/+18
Solaris m4 does not support -I flag, but gnu m4 is included in recent Solaris & OpenSolaris releases (and must already be installed on any machine that runs autoconf to generate configure scripts) Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-19Add xcb_aux_change_window_attributes_checkedMikhail Gusarov2-0/+17
There is xcb_aux_change_window_attributes, add the matching checked function. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15include xcb-util-common.h in dist tarball0.3.4Julien Danjou1-0/+2
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15bump version to 0.3.4Julien Danjou1-1/+1
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-14event: add define to get request and error typesJulien Danjou2-2/+4
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-14event: add error valuesJulien Danjou1-0/+45
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-14event: simplify protoJulien Danjou2-23/+13
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12keysyms: bump versionJulien Danjou1-0/+1
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-11keysyms: fix xcb_key_symbols_get_keycode() APIJulien Danjou2-28/+40
xcb_key_symbols_get_keycode() returned a keycode. That's wrong, since actually a keysym can have multiple keycode. And we usually need all this keycodes to correctly grab a keysym. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-04icccm: add xcb_get_wm_class_from_reply()Julien Danjou2-7/+25
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-02wm: removeJulien Danjou12-997/+1
This has never worked, and is not maintained nor developed anymore. Signed-off-by: Julien Danjou <julien@danjou.info>