summaryrefslogtreecommitdiff
path: root/icccm
AgeCommit message (Collapse)AuthorFilesLines
2014-02-13make: compile the library with standard xorg warning flagsGaetan Nadon1-1/+1
The new BASE_CFLAGS variable contains only warning flags that do not alter the generated byte code, unlike the deprecated CWARNFLAGS which turns off the GNUCC strict aliasing optimization. Also, update m4 submodule as util-macros version 1.16 or later is required. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Arnaud Fontaine <arnau@debian.org>
2014-02-07make: using EXTRA_DIST for xcb-*.pc.in is redundantGaetan Nadon1-2/+0
All files mentionned in AC_CONFIG_FILES have their source files distributed automatically. http://www.gnu.org/software/automake/manual/automake.html Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2014-02-07make: there should be no attempt to remove any Makefile.in fileGaetan Nadon1-2/+0
Files generated by autoconf (and the various tools it calls) must not be removed by running a makefile. This is outside the scope of the makefile. http://lists.gnu.org/archive/html/autoconf/2007-03/msg00043.html One can use git-clean to return to the original state of the module prior to running autogen.sh, autoreconf or configure. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2014-02-07make: use AM_CPPFLAGS rather than per-target libxcb_*_la_CPPFLAGSGaetan Nadon1-1/+1
There is only one target in this directory, so we do not need to trigger the per-target infrastructure which would require AC_PROG_CC_C_O macro. So libxcb_ewmh_la-ewmh.o simply becomes ewmh.o. http://www.gnu.org/software/automake/manual/automake.html#Renamed-Objects Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2014-02-07make: remove unused XPROTO_CFLAGS and XPROTO_LIBSGaetan Nadon1-2/+2
These should have been removed with the patch: "Split up icccm and ewmh into their own repository" back in 2011. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2014-02-03config: use AC_CONFIG_HEADERS to create a config.h fileGaetan Nadon1-0/+4
This file contains C preprocessor #define statements which replace the current -Ds added to each compilation invocation. This makes the gcc output command easier to read and prevents exceeding the max line limits on some computers. This is the preferred method in al the xorg modules. Reviewed-by: Arnaud Fontaine <arnau@debian.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-06-30Replacing c++ class keyword in interface headerAndreas Pokorny1-3/+3
class is a c++ keyword and cannot be used for parameter names. Signed-off-by: Andreas Pokorny <Andreas.Pokorny@gmail.com> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2011-03-26Link with -no-undefinedJon TURNEY1-1/+1
Use -no-undefined to assure libtool that the library has no unresolved symbols at link time, so that libtool will build a shared library for platforms require that all symbols are resolved when the library is linked. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Acked-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2011-03-06Prefix all ICCCM public functions, types and macros by 'icccm'.Arnaud Fontaine3-601/+601
By convention, all public functions, types and macros of other xcb/util libraries are prefixed by their name, and so should icccm. The library SONAME has been bumped since this commit completely breaks the interface.
2010-11-14Ensure 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-11-14Delete callback-based APIs for events, properties, and replies.Jamey Sharp4-65/+6
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-11-14icccm 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-11-14Close 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-11-14Fix typos in various header commentsAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Jamey Sharp <jamey@minilop.net>
2010-11-14icccm: fix inconsistency in prototypes of WM_PROTOCOLS settersArnaud Fontaine2-14/+14
2010-11-14icccm: add WM_COLORMAP_WINDOWSArnaud Fontaine2-0/+170
2010-11-14icccm: allow to set the encoding format for TEXT propertiesArnaud Fontaine3-43/+59
2010-11-14icccm: add missing setters for WM_CLASS and WM_TRANSIENT_FOR propertiesArnaud Fontaine2-0/+85
2010-11-14xcb_get_text_property_reply() reply type could be XCB_NONE if the property ↵Arnaud Fontaine1-1/+1
is not present
2010-11-14Validate 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-11-14icccm: atoms previously defined in xcb_atom are now defined in xprotoArnaud Fontaine3-46/+48
2010-11-14Make 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>
2010-11-14icccm: 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>
2010-11-14Add missing return valuesArnaud Fontaine2-93/+116
2010-11-14icccm: add xcb_get_wm_protocols_from_replyJulien Danjou2-9/+25
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14icccm: typo fixJulien Danjou1-1/+1
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14icccm: fix atoms_len with new libxcbJulien Danjou1-1/+1
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14icccm: use xcb_gravity_t when possible and cosmetic changesArnaud Fontaine1-7/+11
2010-11-14icccm: fix compatibility with libxcb > 1.2Julien Danjou1-8/+8
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>
2010-11-14icccm: add xcb_get_wm_class_from_reply()Julien Danjou2-7/+25
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14icccm: change class hint struct fields nameJulien Danjou2-5/+5
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14icccm: fix gravity protoJulien Danjou2-2/+2
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14Fix the type of 'input' in icccm/xcb_icccm.h/xcb_wm_hints_tPeter Harris1-1/+1
This bug behaves even worse, affecting all fields subsequent to input, if someone insane compiles with -fpack-struct=1
2010-11-14Fix copyright statementJonathan Landis1-2/+2
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14add more verbose explanation of the purpose of "encoding" parameter in ↵Henning Sten1-3/+3
doxygen documentation tag Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14icccm: fix normal hints flags computingJulien Danjou1-5/+10
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14icccm: add some comment on text reply usageJulien Danjou1-0/+3
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14icccm: introduce xcb_get_wm_transient_for_from_replyJulien Danjou2-10/+23
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14doc: enable doxygen doc in various submoduleJulien Danjou1-154/+166
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14icccm: allow information retrieval from replyJulien Danjou2-20/+48
This is handy when it comes to use this function from xcb-property handlers, because the reply is furnished in the callback. Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14icccm: free reply in wm hints retrievalJulien Danjou1-0/+2
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-11-14[icccm] Bump library version number to 0.3.0.Arnaud Fontaine1-0/+1
2010-11-14[icccm] Comment and indent the code properly.Arnaud Fontaine2-262/+401
2010-11-14[icccm] Avoid InternAtom request.Arnaud Fontaine2-30/+26
2010-11-14[icccm] Add functions to get WM_CLASS property.Arnaud Fontaine2-0/+98
2010-11-14[icccm] Add copyright notices.Arnaud Fontaine2-0/+58
2010-11-14[icccm] Fix namespace according to XCB code in general.Arnaud Fontaine2-55/+55
2010-11-14[icccm] Make xcb_get_wm_protocols() asynchronous and document theArnaud Fontaine2-44/+96
code.
2010-11-14[icccm] Make xcb_get_wm_hints() asynchronous, remove useless functionsArnaud Fontaine2-123/+94
and document the code.
2010-11-14[icccm] Make xcb_get_wm_size_hints() and xcb_get_wm_normal_hints()Arnaud Fontaine2-209/+157
asynchronous, remove useless functions and document the code.