From b1e3db243eb118b4b2eb483df4a9ad19dcee17d0 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 16 Sep 2011 22:15:10 -0700 Subject: 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 --- Makefile.am | 6 ++-- man/Xcomposite.xml | 84 +++++++++++++++++++++++++++--------------------------- src/Makefile.am | 8 +++--- src/Xcomposite.c | 26 ++++++++--------- 4 files changed, 62 insertions(+), 62 deletions(-) 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. display - Pointer to the Display structure returned from + Pointer to the Display structure returned from XOpenDisplay for the connection to the X server. @@ -246,11 +246,11 @@ contents of all descendants. XCompositeQueryExtension - XCompositeQueryExtension determines if the - Composite Extension is available on the given display. It returns - True if the extension is supported, otherwise - False. If the extension is present, the base - values for events and errors are returned, and can be used to + XCompositeQueryExtension determines if the + Composite Extension is available on the given display. It returns + True if the extension is supported, otherwise + False. 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. @@ -258,12 +258,12 @@ contents of all descendants. XCompositeQueryVersion XCompositeQueryVersion 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. @@ -271,7 +271,7 @@ contents of all descendants. XCompositeVersion - XCompositeVersion returns the version of the + XCompositeVersion returns the version of the X Composite library. The version number is encoded as:
(major * 10000) + (minor * 100) + revision @@ -284,18 +284,18 @@ contents of all descendants. XCompositeRedirectWindow - XCompositeRedirectWindow requests the X server - to direct the hierarchy starting at window to - off-screen storage. - The update argument specifies whether + XCompositeRedirectWindow requests the X server + to direct the hierarchy starting at window to + off-screen storage. + The update 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 - CompositeRedirectManual, another attempt will - result in a BadAccess error. When all clients + Only one client at a time may specify an update type of + CompositeRedirectManual, another attempt will + result in a BadAccess error. When all clients enabling redirection terminate, the redirection will automatically be disabled. - The root window may not be redirected. Doing so results in a + The root window may not be redirected. Doing so results in a BadMatch error. Specifying an invalid window id will result in a BadWindow error. @@ -303,20 +303,20 @@ contents of all descendants. XCompositeRedirectSubwindows - XCompositeRedirectSubwindows requests the X - server to redirect hierarchies starting at all current and future - children of window as in - XCompositeRedirectWindow. - If update is - CompositeRedirectManual, then painting of the - window background during window manipulation and ClearArea requests + XCompositeRedirectSubwindows requests the X + server to redirect hierarchies starting at all current and future + children of window as in + XCompositeRedirectWindow. + If update is + CompositeRedirectManual, then painting of the + window background during window manipulation and ClearArea requests is inhibited. XCompositeUnredirectWindow - XCompositeUnredirectWindow requests the X + XCompositeUnredirectWindow requests the X server to terminate redirection of window. If the specified window was not selected for redirection by the current client, a BadValue error results. @@ -325,7 +325,7 @@ contents of all descendants. XCompositeUnredirectSubwindows - XCompositeUnredirectWindow requests the X + XCompositeUnredirectWindow requests the X server to terminate redirection of all children of window. If the specified window was not selected for sub-redirection by the @@ -349,12 +349,12 @@ contents of all descendants. XCompositeNameWindowPixmap creates and returns a pixmap id that serves as a reference to the off-screen storage for - window. 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 + window. 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 BadMatch error if window is not redirected or is not visible. @@ -366,15 +366,15 @@ contents of all descendants. XCompositeGetOverlayWindow XCompositeGetOverlayWindow returns the window ID - of the Composite Overlay Window for - the screen specified by the argument window. - 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 window. + 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. - 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 XCompositeReleaseOverlayWindow for that screen, or terminated their connection to the X server. @@ -385,9 +385,9 @@ contents of all descendants. XCompositeReleaseOverlayWindow - This request specifies that the client is no longer using the - Composite Overlay Window on the screen specified by the - argument window. 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 window. A screen's Composite Overlay Window is unmapped when there are no longer any clients using it. 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 (); -- cgit v1.2.3