diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-16 22:15:10 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-16 22:15:10 -0700 |
commit | b1e3db243eb118b4b2eb483df4a9ad19dcee17d0 (patch) | |
tree | fd6e219a3984bec750de7deb2203c899e2b4a2d1 /src/Xcomposite.c | |
parent | db1ae0c545b4b359204c33488104d214c91f12bb (diff) |
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.coopersmith@oracle.com>
Diffstat (limited to 'src/Xcomposite.c')
-rw-r--r-- | src/Xcomposite.c | 26 |
1 files changed, 13 insertions, 13 deletions
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 (); |