Makefile.am | 6 +-- configure.ac | 93 ++++++++++++++++++++++++++--------------------------- man/Xcomposite.xml | 84 +++++++++++++++++++++++------------------------ src/Makefile.am | 8 ++-- src/Xcomposite.c | 26 +++++++------- 5 files changed, 108 insertions(+), 109 deletions(-)
New commits: commit 0db73ea70c690eabe581c7293f77ec2be18e1f41 Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Wed Jan 2 23:29:00 2013 -0800 libXcomposite 0.4.4 Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> diff --git a/configure.ac b/configure.ac index f9bf215..8dc4135 100644 --- a/configure.ac +++ b/configure.ac @@ -31,7 +31,7 @@ AC_PREREQ([2.60]) # that 'revision' number appears in Xcomposite.h and has to be manually # synchronized. # -AC_INIT(libXcomposite, [0.4.3], +AC_INIT(libXcomposite, [0.4.4], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXcomposite]) AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_HEADERS([config.h]) commit b1e3db243eb118b4b2eb483df4a9ad19dcee17d0 Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Fri Sep 16 22:15:10 2011 -0700 Strip trailing whitespace Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> diff --git a/Makefile.am b/Makefile.am index f794763..6fd7a30 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ -# +# # Copyright © 2003 Keith Packard, Noah Levitt -# +# # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that @@ -10,7 +10,7 @@ # specific, written prior permission. Keith Packard makes no # representations about the suitability of this software for any purpose. It # is provided "as is" without express or implied warranty. -# +# # KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO # EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR diff --git a/man/Xcomposite.xml b/man/Xcomposite.xml index a1ef1c9..9ba9ec5 100644 --- a/man/Xcomposite.xml +++ b/man/Xcomposite.xml @@ -192,7 +192,7 @@ contents of all descendants. <varlistentry> <term><parameter>display</parameter></term> <listitem><para> - Pointer to the <type>Display</type> structure returned from + Pointer to the <type>Display</type> structure returned from <function>XOpenDisplay</function> for the connection to the X server. </para></listitem> </varlistentry> @@ -246,11 +246,11 @@ contents of all descendants. <varlistentry> <term><function>XCompositeQueryExtension</function></term> <listitem><para> - <function>XCompositeQueryExtension</function> determines if the - Composite Extension is available on the given display. It returns - <constant>True</constant> if the extension is supported, otherwise - <constant>False</constant>. If the extension is present, the base - values for events and errors are returned, and can be used to + <function>XCompositeQueryExtension</function> determines if the + Composite Extension is available on the given display. It returns + <constant>True</constant> if the extension is supported, otherwise + <constant>False</constant>. If the extension is present, the base + values for events and errors are returned, and can be used to decode incoming event and error values. </para></listitem> </varlistentry> @@ -258,12 +258,12 @@ contents of all descendants. <term><function>XCompositeQueryVersion</function></term> <listitem><para> <function>XCompositeQueryVersion</function> determines if the X Server - supports a version of the X Composite Extension which is compatible + supports a version of the X Composite Extension which is compatible with the client library. A non-zero Status is returned if a compatible version of the extension is supported, otherwise a zero Status is returned. - If the extension is supported, the major and minor version numbers are + If the extension is supported, the major and minor version numbers are returned to indicate the level of Composite Extension support. - No other XComposite functions (except XCompositeQueryExtension) may be + No other XComposite functions (except XCompositeQueryExtension) may be called before this function. If a client violates this rule, the effects of all subsequent XComposite calls that it makes are undefined. </para></listitem> @@ -271,7 +271,7 @@ contents of all descendants. <varlistentry> <term><function>XCompositeVersion</function></term> <listitem><para> - <function>XCompositeVersion</function> returns the version of the + <function>XCompositeVersion</function> returns the version of the X Composite library. The version number is encoded as: <blockquote><para><code language="C"> (major * 10000) + (minor * 100) + revision @@ -284,18 +284,18 @@ contents of all descendants. <varlistentry> <term><function>XCompositeRedirectWindow</function></term> <listitem><para> - <function>XCompositeRedirectWindow</function> requests the X server - to direct the hierarchy starting at <parameter>window</parameter> to - off-screen storage. - The <parameter>update</parameter> argument specifies whether + <function>XCompositeRedirectWindow</function> requests the X server + to direct the hierarchy starting at <parameter>window</parameter> to + off-screen storage. + The <parameter>update</parameter> argument specifies whether the contents are mirrored to the parent window automatically or not. - Only one client at a time may specify an update type of - <constant>CompositeRedirectManual</constant>, another attempt will - result in a <errorname>BadAccess</errorname> error. When all clients + Only one client at a time may specify an update type of + <constant>CompositeRedirectManual</constant>, another attempt will + result in a <errorname>BadAccess</errorname> error. When all clients enabling redirection terminate, the redirection will automatically be disabled. </para><para> - The root window may not be redirected. Doing so results in a + The root window may not be redirected. Doing so results in a <errorname>BadMatch</errorname> error. Specifying an invalid window id will result in a <errorname>BadWindow</errorname> error. </para></listitem> @@ -303,20 +303,20 @@ contents of all descendants. <varlistentry> <term><function>XCompositeRedirectSubwindows</function></term> <listitem><para> - <function>XCompositeRedirectSubwindows</function> requests the X - server to redirect hierarchies starting at all current and future - children of <parameter>window</parameter> as in - <function>XCompositeRedirectWindow</function>. - If <parameter>update</parameter> is - <constant>CompositeRedirectManual</constant>, then painting of the - window background during window manipulation and ClearArea requests + <function>XCompositeRedirectSubwindows</function> requests the X + server to redirect hierarchies starting at all current and future + children of <parameter>window</parameter> as in + <function>XCompositeRedirectWindow</function>. + If <parameter>update</parameter> is + <constant>CompositeRedirectManual</constant>, then painting of the + window background during window manipulation and ClearArea requests is inhibited. </para></listitem> </varlistentry> <varlistentry> <term><function>XCompositeUnredirectWindow</function></term> <listitem><para> - <function>XCompositeUnredirectWindow</function> requests the X + <function>XCompositeUnredirectWindow</function> requests the X server to terminate redirection of <parameter>window</parameter>. If the specified window was not selected for redirection by the current client, a <errorname>BadValue</errorname> error results. @@ -325,7 +325,7 @@ contents of all descendants. <varlistentry> <term><function>XCompositeUnredirectSubwindows</function></term> <listitem><para> - <function>XCompositeUnredirectWindow</function> requests the X + <function>XCompositeUnredirectWindow</function> requests the X server to terminate redirection of all children of <parameter>window</parameter>. If the specified window was not selected for sub-redirection by the @@ -349,12 +349,12 @@ contents of all descendants. <listitem><para> <function>XCompositeNameWindowPixmap</function> creates and returns a pixmap id that serves as a reference to the off-screen storage for - <parameter>window</parameter>. This pixmap will remain allocated - until freed, even if the window is unmapped, reconfigured or - destroyed. However, the window will get a new pixmap allocated each - time it is mapped or resized, so this function will need to be + <parameter>window</parameter>. This pixmap will remain allocated + until freed, even if the window is unmapped, reconfigured or + destroyed. However, the window will get a new pixmap allocated each + time it is mapped or resized, so this function will need to be reinvoked for the client to continue to refer to the storage holding - the current window contents. Generates a + the current window contents. Generates a <errorname>BadMatch</errorname> error if <parameter>window</parameter> is not redirected or is not visible. </para><para> @@ -366,15 +366,15 @@ contents of all descendants. <term><function>XCompositeGetOverlayWindow</function></term> <listitem><para> <function>XCompositeGetOverlayWindow</function> returns the window ID - of the Composite Overlay Window for - the screen specified by the argument <parameter>window</parameter>. - This function notifies the X server that the client wishes to use - the Composite Overlay Window of this screen. If this - Composite Overlay Window has not yet been mapped, it is mapped by this + of the Composite Overlay Window for + the screen specified by the argument <parameter>window</parameter>. + This function notifies the X server that the client wishes to use + the Composite Overlay Window of this screen. If this + Composite Overlay Window has not yet been mapped, it is mapped by this request. </para><para> - The Composite Overlay Window for a particular screen will be - unmapped when all clients who have called this function have + The Composite Overlay Window for a particular screen will be + unmapped when all clients who have called this function have either called <function>XCompositeReleaseOverlayWindow</function> for that screen, or terminated their connection to the X server. </para><para> @@ -385,9 +385,9 @@ contents of all descendants. <varlistentry> <term><function>XCompositeReleaseOverlayWindow</function></term> <listitem><para> - This request specifies that the client is no longer using the - Composite Overlay Window on the screen specified by the - argument <parameter>window</parameter>. A screen's Composite + This request specifies that the client is no longer using the + Composite Overlay Window on the screen specified by the + argument <parameter>window</parameter>. A screen's Composite Overlay Window is unmapped when there are no longer any clients using it. </para><para> The X server must support at least version 0.3 of the Composite diff --git a/src/Makefile.am b/src/Makefile.am index 456bb88..0efe173 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,6 @@ -# +# # Copyright © 2003 Keith Packard, Noah Levitt -# +# # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that @@ -10,7 +10,7 @@ # specific, written prior permission. Keith Packard makes no # representations about the suitability of this software for any purpose. It # is provided "as is" without express or implied warranty. -# +# # KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO # EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR @@ -33,4 +33,4 @@ libXcomposite_la_LIBADD = $(XCOMPOSITE_LIBS) libXcomposite_la_LDFLAGS = -version-number 1:0:0 -no-undefined libXcompositeincludedir = $(includedir)/X11/extensions -libXcompositeinclude_HEADERS = $(top_srcdir)/include/X11/extensions/Xcomposite.h +libXcompositeinclude_HEADERS = $(top_srcdir)/include/X11/extensions/Xcomposite.h diff --git a/src/Xcomposite.c b/src/Xcomposite.c index eaa1790..9402339 100644 --- a/src/Xcomposite.c +++ b/src/Xcomposite.c @@ -52,7 +52,7 @@ const char XCompositeExtensionName[] = COMPOSITE_NAME; * XCompositeExtRemoveDisplay - remove the indicated display from the * extension object. (Replaces XextRemoveDisplay.) */ -static int +static int XCompositeExtRemoveDisplay (XCompositeExtInfo *extinfo, Display *dpy) { XCompositeExtDisplayInfo *info, *prev; @@ -111,13 +111,13 @@ XCompositeExtAddDisplay (XCompositeExtInfo *extinfo, info->codes = XInitExtension (dpy, ext_name); /* - * if the server has the extension, then we can initialize the + * if the server has the extension, then we can initialize the * appropriate function vectors */ if (info->codes) { xCompositeQueryVersionReply rep; xCompositeQueryVersionReq *req; - XESetCloseDisplay (dpy, info->codes->extension, + XESetCloseDisplay (dpy, info->codes->extension, XCompositeCloseDisplay); /* * Get the version info @@ -128,7 +128,7 @@ XCompositeExtAddDisplay (XCompositeExtInfo *extinfo, req->compositeReqType = X_CompositeQueryVersion; req->majorVersion = COMPOSITE_MAJOR; req->minorVersion = COMPOSITE_MINOR; - if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) + if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) { UnlockDisplay (dpy); SyncHandle (); @@ -171,7 +171,7 @@ XCompositeExtAddDisplay (XCompositeExtInfo *extinfo, * XextFindDisplay.) */ static XCompositeExtDisplayInfo * -XCompositeExtFindDisplay (XCompositeExtInfo *extinfo, +XCompositeExtFindDisplay (XCompositeExtInfo *extinfo, Display *dpy) { XCompositeExtDisplayInfo *info; @@ -179,7 +179,7 @@ XCompositeExtFindDisplay (XCompositeExtInfo *extinfo, /* * see if this was the most recently accessed display */ - if ((info = extinfo->cur) && info->display == dpy) + if ((info = extinfo->cur) && info->display == dpy) return info; /* @@ -205,30 +205,30 @@ XCompositeFindDisplay (Display *dpy) info = XCompositeExtFindDisplay (&XCompositeExtensionInfo, dpy); if (!info) - info = XCompositeExtAddDisplay (&XCompositeExtensionInfo, dpy, + info = XCompositeExtAddDisplay (&XCompositeExtensionInfo, dpy, XCompositeExtensionName); return info; } - -Bool + +Bool XCompositeQueryExtension (Display *dpy, int *event_base_return, int *error_base_return) { XCompositeExtDisplayInfo *info = XCompositeFindDisplay (dpy); - if (XCompositeHasExtension(info)) + if (XCompositeHasExtension(info)) { *event_base_return = info->codes->first_event; *error_base_return = info->codes->first_error; return True; - } + } else return False; } -Status +Status XCompositeQueryVersion (Display *dpy, int *major_version_return, int *minor_version_return) @@ -372,7 +372,7 @@ XCompositeGetOverlayWindow (Display *dpy, Window window) SyncHandle (); return 0; } - + UnlockDisplay (dpy); SyncHandle (); commit db1ae0c545b4b359204c33488104d214c91f12bb Author: Gaetan Nadon <mems...@videotron.ca> Date: Wed Feb 2 11:43:41 2011 -0500 config: comment, minor upgrade, quote and layout configure.ac Group statements per section as per Autoconf standard layout Quote statements where appropriate. Autoconf recommends not using dnl instead of # for comments Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters. Add AC_CONFIG_SRCDIR([Makefile.am]) This helps automated maintenance and release activities. Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines diff --git a/configure.ac b/configure.ac index fbd72ce..f9bf215 100644 --- a/configure.ac +++ b/configure.ac @@ -1,53 +1,52 @@ -dnl -dnl Copyright © 2003 Keith Packard, Noah Levitt -dnl -dnl Permission to use, copy, modify, distribute, and sell this software and its -dnl documentation for any purpose is hereby granted without fee, provided that -dnl the above copyright notice appear in all copies and that both that -dnl copyright notice and this permission notice appear in supporting -dnl documentation, and that the name of Keith Packard not be used in -dnl advertising or publicity pertaining to distribution of the software without -dnl specific, written prior permission. Keith Packard makes no -dnl representations about the suitability of this software for any purpose. It -dnl is provided "as is" without express or implied warranty. -dnl -dnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, -dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO -dnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR -dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, -dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -dnl PERFORMANCE OF THIS SOFTWARE. -dnl -dnl Process this file with autoconf to create configure. +# +# Copyright © 2003 Keith Packard, Noah Levitt +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of Keith Packard not be used in +# advertising or publicity pertaining to distribution of the software without +# specific, written prior permission. Keith Packard makes no +# representations about the suitability of this software for any purpose. It +# is provided "as is" without express or implied warranty. +# +# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO +# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR +# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. +# +# Initialize Autoconf AC_PREREQ([2.60]) +# +# Version should match the current XComposite version. XCompositeQueryVersion +# returns the version from xcompositewire.h, NOT the version we set here. +# But we try to keep these the same. Note that the library has an extra +# digit in the version number to track changes which don't affect the +# protocol, so Xcomposite version l.n.m corresponds to protocol version l.n +# that 'revision' number appears in Xcomposite.h and has to be manually +# synchronized. +# +AC_INIT(libXcomposite, [0.4.3], + [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXcomposite]) +AC_CONFIG_SRCDIR([Makefile.am]) +AC_CONFIG_HEADERS([config.h]) -dnl -dnl Version should match the current XComposite version. XCompositeQueryVersion -dnl returns the version from xcompositewire.h, NOT the version we set here. -dnl But we try to keep these the same. Note that the library has an extra -dnl digit in the version number to track changes which don't affect the -dnl protocol, so Xcomposite version l.n.m corresponds to protocol version l.n -dnl that 'revision' number appears in Xcomposite.h and has to be manually -dnl synchronized. -dnl -AC_INIT(libXcomposite, - [0.4.3], - [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], - libXcomposite) +# Initialize Automake AM_INIT_AUTOMAKE([foreign dist-bzip2]) AM_MAINTAINER_MODE +# Initialize libtool +AC_PROG_LIBTOOL + # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS m4_ifndef([XORG_MACROS_VERSION], [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) XORG_MACROS_VERSION(1.8) -AC_CONFIG_HEADERS(config.h) - -# Check for progs -AC_PROG_LIBTOOL - XORG_DEFAULT_OPTIONS XORG_WITH_XMLTO(0.0.20) @@ -58,17 +57,18 @@ AM_CONDITIONAL([INSTALL_MANPAGES], # Check compositeext configuration, strip extra digits from package version to # find the required protocol version - if test "$VERSION" = "" ; then VERSION=$PACKAGE_VERSION; fi COMPOSITEEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] AC_SUBST(COMPOSITEEXT_VERSION) + +# Obtain compiler/linker options for depedencies PKG_CHECK_MODULES(XCOMPOSITE, [compositeproto >= $COMPOSITEEXT_VERSION] x11) PKG_CHECK_MODULES(XFIXES, xfixes) -AC_OUTPUT([Makefile - src/Makefile - man/Makefile - xcomposite.pc]) - +AC_CONFIG_FILES([Makefile + src/Makefile + man/Makefile + xcomposite.pc]) +AC_OUTPUT commit f6dcd194f87fb7009b8afa482326de044d0e9c24 Author: Gaetan Nadon <mems...@videotron.ca> Date: Fri Jan 28 19:41:37 2011 -0500 config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS Signed-off-by: Gaetan Nadon <mems...@videotron.ca> diff --git a/configure.ac b/configure.ac index a5a823e..fbd72ce 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,7 @@ AM_MAINTAINER_MODE m4_ifndef([XORG_MACROS_VERSION], [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) XORG_MACROS_VERSION(1.8) -AM_CONFIG_HEADER(config.h) +AC_CONFIG_HEADERS(config.h) # Check for progs AC_PROG_LIBTOOL commit 0e1e69c7b71700c50f71b55f74cd12b8569fa966 Author: Gaetan Nadon <mems...@videotron.ca> Date: Thu Jan 27 18:50:14 2011 -0500 config: remove AC_PROG_CC as it overrides AC_PROG_C_C99 XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls AC_PROG_C_C99. This sets gcc with -std=gnu99. If AC_PROG_CC macro is called afterwards, it resets CC to gcc. Signed-off-by: Gaetan Nadon <mems...@videotron.ca> diff --git a/configure.ac b/configure.ac index cd3f60a..a5a823e 100644 --- a/configure.ac +++ b/configure.ac @@ -46,7 +46,6 @@ XORG_MACROS_VERSION(1.8) AM_CONFIG_HEADER(config.h) # Check for progs -AC_PROG_CC AC_PROG_LIBTOOL XORG_DEFAULT_OPTIONS -- To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/e1uoisa-0003uv...@vasks.debian.org