summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-10-19xcb-util-cursor 0.1.5HEADxcb-util-cursor-0.1.5masterAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-07-08cppcheck style-fixes in _XcursorThemeInheritsThomas E. Dickey1-2/+1
Copied from libxcursor@f807ac9c786714ef4e86ad7edfa60f92baf0b4a6 Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-07-08Insufficient memory for terminating null of string in _XcursorThemeInheritsshubham shrivastav1-1/+1
Copied from libxcursor@897213f36baf6926daf6d192c709cf627aa5fd05 Reported-by: @ithinkapps in libxcb-cursor issue #11 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-28Set close-on-exec when opening filesAlan Coopersmith1-2/+9
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-18xcb-util-cursor 0.1.4xcb-util-cursor-0.1.4Alan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-1/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-20gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-20Update m4 to xorg/util/xcb-util-m4@c617eee22ae5c285e79e81Alan Coopersmith1-0/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-06-18Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parametersAlan Coopersmith1-1/+2
configure.ac:37: warning: AC_OUTPUT should be used without arguments. configure.ac:37: You should run autoupdate. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-06-18Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-17Add README.md to EXTRA_DISTAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-17Update README for gitlab migrationAlan Coopersmith1-7/+8
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-17Fix out-of-source buildsUli Schlachter1-1/+1
When building something out-of-source, make's VPATH mechanism is used so that files in the source directory are also found. This makes make automatically check that other directory for needed files and use those when needed. However, make doesn't magically copy those files over. We have to explicitly use the file that make found. Do so by using $< for refering to shape_to_id.gperf instead of hardcoding the name of the source file. This fixes out-of-source git builds. Out-of-source release builds already worked before this, because releases come with a pre-generated shape_to_id.c. This fixes https://bugs.freedesktop.org/show_bug.cgi?id=80153 Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-07-11documentation: Call xcb_free_cursor() when doneUli Schlachter1-0/+1
The documentation for xcb_cursor_load_cursor() say that the resulting cursor must be freed, but the example in the documentation does not do so. It does not matter much for this example, but I think it is a good idea to use it to hint to this requirement. Also, the example already uses xcb_cursor_context_free(), so it tries to clean up after itself. Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-05-12set version to 0.1.30.1.3Michael Stapelberg2-1/+6
2016-05-12Add a --with-cursorpath option to configureUli Schlachter2-1/+9
This works (hopefully) the same way as the same option does for libXcursor. Signed-off-by: Uli Schlachter <uli.schlachter@informatik.uni-oldenburg.de>
2015-03-25set version to 0.1.20.1.2Michael Stapelberg2-1/+10
2015-03-22Perform safety check before trying to load glyph cursorMartin Gräßlin1-0/+2
The passed in cursor name to xcb_cursor_load_cursor might not match one of the predefined font cursor values. Without the check the call to create glyph cursor will fail with a BadValue error, but the library returns the id allocated for the xcb_cursor_t. A user of the library gets a value which looks like a valid cursor, but when using it for e.g. a cursor value in xcb_create_window it raises a BadCursor error.
2014-04-05darwin: Use OSByteOrder.h rather than CF.Jeremy Huddleston Sequoia2-4/+4
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2014-01-29Check submodules before running autoconf.Niclas Zeising1-0/+15
Exit early with an informative message if the submodules are missing, since they are needed. Without this autoconf throws a bunch of uninformative errors which does not point to the actual problem. This was taken from util-keysyms. Signed-off-by: Niclas Zeising <zeising@daemonic.se> Reviewed-By: Arnaud Fontaine <arnau@debian.org>
2013-12-24Use CFSwapInt32LittleToHost from CoreFoundation.h on Mac OS X to implement ↵Marcus Crestani2-1/+4
le32toh.
2013-11-12set version to 0.1.10.1.1Michael Stapelberg2-1/+12
2013-11-09Bugfix: Properly load cursor files where not all cursors are suitableMichael Stapelberg1-1/+1
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=71060
2013-11-07handle read() errors (Thanks psychon)Michael Stapelberg1-26/+44
2013-10-13Fail the build if gperf is needed, but not foundUli Schlachter1-1/+4
The rule that cursor/Makefile.am uses for calling gperf can be found on the internet[0]. That page explains three cases that should be handled: 1. gperf succeeded 2. gperf failed 3. gperf is missing The reasoning for the third case is: If $(GPERF) does not answer to --version, it is certainly missing, and missing already suggested to install Gperf. Then remove the temporary output file, and let the compilation proceed by updating the timestamp of the output file. That's a best effort, essentially helping users who get the project with broken timestamps. However, this assumes that the user is building from a tarball which already contains a working version of the output C file. When building from git, this file does not exist and instead of updating the timestamp of the output file, this Makefile rule would create the output file. Thus, the following four cases need to be handled: 1. gperf succeeded 2. gperf failed 3. gperf is missing and the output file already exists 4. gperf is missing and the output file is missing, too For the third case, the above reasoning applies. However, in the fourth case, the build would continue and produce a broken library. For xcb-util-cursor this means that linking to this library would fail with "undefined reference to `cursor_shape_to_id'". So in this case the build should fail. [0]: http://www.lrde.epita.fr/~akim/ccmp/doc/gnuprog2/Using-Gperf-with-the-GNU-Build-System.html Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-10-13Use $(AM_V_GEN) when calling gperfUli Schlachter1-1/+1
This adds support for automake's silent mode to the gperf rule. In silent mode, make will not print the whole command lines, but only a short version of what it does. For this rule, "GEN shape_to_id.c" will be printed. Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-10-08Use LE_32 macro from <sys/byteorder.h> on Solaris versions without le32toh()Alan Coopersmith2-1/+8
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-09-20Check exact RENDER version that the server supportsUli Schlachter3-8/+26
RENDER's CreateCursor request was added in version 0.5 and CreateAnimCursor was added in version 0.8. Hence, just having the RENDER extension is not enough and we need to check the exact version that the server provides. Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-09-20Fix memleak with broken resource databasesUli Schlachter1-3/+7
If someone e.g. defines Xcursor.theme twice in the resource information, this would cause c->rm[RM_XCURSOR_THEME] to be set via strdup() twice which means that the first pointer is leaked. Fix this by freeing the old value in this case. Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-08-21set version to 0.1.00.1.0Michael Stapelberg2-1/+8
2013-08-21Bugfix: Use xhot/yhot, don’t hardcode the value (Thanks tenkainen)Michael Stapelberg1-1/+1
In early development, I hardcoded these to make debugging easier, but then forgot to use the actual variables :).
2013-08-18kill typedef, that is done in xcb_cursor, only define struct (Thanks Niclas)Michael Stapelberg1-1/+1
2013-08-12Silence compiler warning (Thanks Niclas Zeising)Michael Stapelberg1-0/+1
2013-08-12Fix build on FreeBSD (and possibly other BSDs)Niclas Zeising2-0/+9
FreeBSD have the le32toh macro in <sys/endian.h>, and this file is not indirectly included by any other header in util-cursor. Add a configure check that checks for <endian.h> (Linux) and <sys/endian.h> (FreeBSD), and include the right file based on this check. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
2013-07-13add COPYING fileMichael Stapelberg1-0/+23
2013-07-12don’t define xcb_cursor_context_t twice (Thanks Thomas)Michael Stapelberg1-1/+3
This fixes a compilation problem on NetBSD
2013-07-09set version to 0.0.990.0.99Michael Stapelberg2-20/+4
2013-07-09fix package nameMichael Stapelberg1-1/+1
2013-07-09fix READMEMichael Stapelberg1-8/+7
2013-07-09catch integer overflows (Thanks psychon)Michael Stapelberg1-0/+5
2013-07-09Fix memory leak (Thanks psychon)Michael Stapelberg1-1/+3
2013-07-09Clarify that pict_format is a pointer into pf_replyMichael Stapelberg1-0/+1
…and therefore does not need to be freed in xcb_cursor_context_free()
2013-07-09don’t call xcb_render_ when !render_present (Thanks psychon)Michael Stapelberg1-3/+6
2013-07-09add comment to clarify how the fallback worksMichael Stapelberg1-0/+2
2013-07-09add cursor.h and shape_to_id.gperf to EXTRA_DIST (Thanks psychon)Michael Stapelberg1-1/+1
This makes “make distcheck” work
2013-01-13fix an ISO C mixed declarations/code warningMichael Stapelberg1-2/+3