summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-11-17Handle -Wshorten-64-to-32 warnings from clangAlan Coopersmith
Xdamage.c:265:28: warning: implicit conversion loses integer precision: 'Drawable' (aka 'unsigned long') to 'CARD32' (aka 'unsigned int') [-Wshorten-64-to-32] awire->drawable = aevent->drawable; ~ ~~~~~~~~^~~~~~~~ Xdamage.c:266:26: warning: implicit conversion loses integer precision: 'Damage' (aka 'unsigned long') to 'CARD32' (aka 'unsigned int') [-Wshorten-64-to-32] awire->damage = aevent->damage; ~ ~~~~~~~~^~~~~~ Xdamage.c:268:29: warning: implicit conversion loses integer precision: 'Time' (aka 'unsigned long') to 'CARD32' (aka 'unsigned int') [-Wshorten-64-to-32] awire->timestamp = aevent->timestamp; ~ ~~~~~~~~^~~~~~~~~ Xdamage.c:326:26: warning: implicit conversion loses integer precision: 'Damage' (aka 'unsigned long') to 'CARD32' (aka 'unsigned int') [-Wshorten-64-to-32] req->damage = damage = XAllocID (dpy); ~ ~~~~~~~^~~~~~~~~~~~~~~~ Xdamage.c:327:21: warning: implicit conversion loses integer precision: 'Drawable' (aka 'unsigned long') to 'CARD32' (aka 'unsigned int') [-Wshorten-64-to-32] req->drawable = drawable; ~ ^~~~~~~~ Xdamage.c:345:19: warning: implicit conversion loses integer precision: 'Damage' (aka 'unsigned long') to 'CARD32' (aka 'unsigned int') [-Wshorten-64-to-32] req->damage = damage; ~ ^~~~~~ Xdamage.c:362:19: warning: implicit conversion loses integer precision: 'Damage' (aka 'unsigned long') to 'CARD32' (aka 'unsigned int') [-Wshorten-64-to-32] req->damage = damage; ~ ^~~~~~ Xdamage.c:363:19: warning: implicit conversion loses integer precision: 'XserverRegion' (aka 'unsigned long') to 'CARD32' (aka 'unsigned int') [-Wshorten-64-to-32] req->repair = repair; ~ ^~~~~~ Xdamage.c:364:18: warning: implicit conversion loses integer precision: 'XserverRegion' (aka 'unsigned long') to 'CARD32' (aka 'unsigned int') [-Wshorten-64-to-32] req->parts = parts; ~ ^~~~~ Xdamage.c:380:21: warning: implicit conversion loses integer precision: 'Drawable' (aka 'unsigned long') to 'CARD32' (aka 'unsigned int') [-Wshorten-64-to-32] req->drawable = drawable; ~ ^~~~~~~~ Xdamage.c:381:19: warning: implicit conversion loses integer precision: 'XserverRegion' (aka 'unsigned long') to 'CARD32' (aka 'unsigned int') [-Wshorten-64-to-32] req->region = region; ~ ^~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-17Handle -Wconversion warnings from clangAlan Coopersmith
Xdamage.c:81:30: warning: implicit conversion loses integer precision: 'int' to 'CARD8' (aka 'unsigned char') [-Wconversion] req->reqType = info->codes->major_opcode; ~ ~~~~~~~~~~~~~^~~~~~~~~~~~ Xdamage.c:264:29: warning: implicit conversion loses integer precision: 'int' to 'CARD8' (aka 'unsigned char') [-Wconversion] awire->type = aevent->type | (aevent->send_event ? 0x80 : 0); ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Xdamage.c:267:31: warning: implicit conversion loses integer precision: 'int' to 'CARD8' (aka 'unsigned char') [-Wconversion] awire->level = aevent->level | (aevent->more ? DamageNotifyMore : 0); ~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Xdamage.c:324:33: warning: implicit conversion loses integer precision: 'int' to 'CARD8' (aka 'unsigned char') [-Wconversion] req->reqType = info->codes->major_opcode; ~ ~~~~~~~~~~~~~^~~~~~~~~~~~ Xdamage.c:328:18: warning: implicit conversion loses integer precision: 'int' to 'CARD8' (aka 'unsigned char') [-Wconversion] req->level = level; ~ ^~~~~ Xdamage.c:343:33: warning: implicit conversion loses integer precision: 'int' to 'CARD8' (aka 'unsigned char') [-Wconversion] req->reqType = info->codes->major_opcode; ~ ~~~~~~~~~~~~~^~~~~~~~~~~~ Xdamage.c:360:33: warning: implicit conversion loses integer precision: 'int' to 'CARD8' (aka 'unsigned char') [-Wconversion] req->reqType = info->codes->major_opcode; ~ ~~~~~~~~~~~~~^~~~~~~~~~~~ Xdamage.c:378:33: warning: implicit conversion loses integer precision: 'int' to 'CARD8' (aka 'unsigned char') [-Wconversion] req->reqType = info->codes->major_opcode; ~ ~~~~~~~~~~~~~^~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-17Remove unnecessary casts from malloc() and free() callsAlan Coopersmith
Not needed in C89 and later Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-16XDamageCloseDisplay: Mark codes as unusedAlan Coopersmith
Quiets clang warning: Xdamage.c:207:47: warning: unused parameter 'codes' [-Wunused-parameter] XDamageCloseDisplay (Display *dpy, XExtCodes *codes) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-16Mark two dpy parameters const as suggested by cppcheckAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-16Variable scope reduction as recommended by cppcheckAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-01-02Use Xfree rather than XFree for consistencyJeremy Huddleston Sequoia
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2013-01-19Replace deprecated Automake INCLUDES variable with AM_CPPFLAGSAlan Coopersmith
Excerpt https://lists.gnu.org/archive/html/automake/2012-12/msg00038.html - Support for the long-deprecated INCLUDES variable will be removed altogether in Automake 1.14. The AM_CPPFLAGS variable should be used instead. This variable was deprecated in Automake releases prior to 1.10, which is the current minimum level required to build X. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-16Strip trailing whitespaceAlan Coopersmith
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>
2010-07-07Purge macros NEED_EVENTS and NEED_REPLIESFernando Carrijo
Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br> Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-04-25nuke RCS IdsMatthieu Herrb
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Reviewed by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-04-09Always call SyncHandle after issuing an X request.Jamey Sharp
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-10-06Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-01-29Janitor: Correct make distcheck and compiler warnings.Paulo Cesar Pereira de Andrade
2008-05-19Change parameter names for QueryVersion/QueryExtension.Peter Hutterer
Simply to clarify the inner workings of the lib and that these parameters are treated as return values only. X.Org Bug 14511 <http://bugs.freedesktop.org/show_bug.cgi?id=14511>
2007-09-07libXdamage incorrectly encodes/decodes the 'More' field from the event.Ryan Lortie
The client library for xdamage currently fails to fill in the 'more' field. As a result, you get whatever uninitialised junk was there before. The server sets the high bit of 'level' when there is 'more' (DamageNotifyMore = 0x80). A patch follows to fix the client library.
2007-03-05Fix DSO version number to match protocol number.libXdamage-1.1.1Adam Jackson
Also increment package version number to 1.1.1 for eventual release.
2007-01-09Track rename of DamagePost to DamageAdd.libXdamage-1.1Eric Anholt
2007-01-08More doc/copyright updates for Damage 1.1 update.Eric Anholt
2007-01-05Add a request to report a region of damage against a drawable.Eric Anholt
This brings the library up to supporting version 1.1 of the protocol. Bump package version accordingly.
2006-10-16Remove incorrect UnlockDisplay and SyncHandle from XDamageQueryVersionJosh Triplett
XDamageQueryVersion calls UnlockDisplay and SyncHandle, without a matching LockDisplay. This triggers an assertion in Xlib/XCB designed to catch these kinds of bugs. Remove the two calls, which fixes the assertion. Thanks to Mike Auty <mike.auty@gmail.com> for the report.
2006-07-13renamed: .cvsignore -> .gitignoreAlan Coopersmith
2006-04-03Coverity #574: Plug a leak on the error path.XORG-7_0_99_901Adam Jackson
2005-07-16Set soversion to 1.0.0 using -version-number.Daniel Stone
2005-07-14Thinkos. AC_SUBST on the damageproto CFLAGS, and s/AM__CFLAGS/AM_CFLAGS/.Adam Jackson
2005-07-09Add .cvsignore files Switch _la_CFLAGS for AM_CFLAGS to clean up directoryKeith Packard
2005-07-02Add appropriate lib*_CFLAGS to Makefile.am's -- fixes build problemsKevin E Martin
2005-05-17Conditionally include config.h in xc/lib/Xdamage and xc/lib/XfixesXORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10Søren Sandmann Pedersen
2005-05-17Add Xdamage build systemSøren Sandmann Pedersen
2004-07-31Bring in Xfixes, Xdamage, and Xcomposite userland from xserver CVS:xprint_packagertest_20041125_baserel-0-6-1lg3d-rel-0-7-0lg3d-rel-0-6-2lg3d-baseXORG-6_8_2XORG-6_8_1_904XORG-6_8_1_903XORG-6_8_1_902XORG-6_8_1_901XORG-6_8_1XORG-6_8_0XORG-6_7_99_904XORG-6_7_99_903XORG-6_7_99_902XORG-6_7_99_901XORG-6_7_99_2XORG-6_7_99_1xprint_packagertest_20041125lg3d-masterlg3d-eventlg3d-dev-0-7-1lg3d-dev-0-7-0lg3d-dev-0-6-latestlg3d-dev-0-6-2lg3d-dev-0-6-1-latestlg3d-dev-0-6-1-currentlg3d-dev-0-6-1-1lg3d-dev-0-6-1lg3dXORG-6_8-branchEric Anholt
- Update Xfixes headers to protocol major version 3. - Add composite headers. - Add libXfixes, libXdamage, and libXcomposite. - Add imake glue for new libraries, but leave Composite off by default until issues are resolved.