summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-04-28BSD MakefileobsdMatthieu Herrb
2024-03-03xev 1.2.6HEADxev-1.2.6masterAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-06-11Mark graceful_exit as noreturnAlan Coopersmith
Suggested by clang -Wmissing-noreturn Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-06-11Mark global variables as "static" since there's only one source fileAlan Coopersmith
Quiets clang -Wmissing-variable-declarations warnings Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-17Fix overflow on XmbLookupString bufferMikael Magnusson
The returned nmbbytes value is the length we need the buffer to be, but the current size is only bsize. We can't store a NUL at buf[nmbbytes] before the realloc, so only do this when the buffer is sized properly. Signed-off-by: Mikael Magnusson <mikachu@gmail.com> [ismael@iodev.co.uk: Moved string termination out of the loop] Signed-off-by: Ismael Luceno <ismael@iodev.co.uk> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-12xev 1.2.5xev-1.2.5Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-02man page: remove out-of-date reference to X(7)Alan Coopersmith
The X(7) man page doesn't list any license information as this had claimed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-02-20xev: fix KeymapNotify event printingGoblin
When xev prints the KeymapNotify event (after the user brings the xev window into focus), it incorrectly displays unsigned char values >= 128. For instance, 128 is printed as 42949667168. This can be seen for instance by holding the '6' key (which has the keycode 15) and then bringing the xev window into focus. Observe the KeymapNotify event, the second number after "keys: " will be 42949667168. If you instead hold the '5' key (which has the keycode 14), you'll see 64 there, as expected. No-one seems to have noticed since at least the last millenium ;-) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06Build xz tarballs instead of bzip2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06gitlab CI: add a basic build testAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-07-17xev 1.2.4xev-1.2.4Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2020-04-13Add option "-1" to display only a single line per eventPiotr Henryk Dabrowski
2019-02-19xev 1.2.3xev-1.2.3Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-10-06Replace sprintf calls with snprintfAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-10-06Adopt X.Org standard code styleAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-10-06Collapse usage message into a single stringAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-10-06Add -version to usage outputAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-07-31xev: fix 'mode' in default case (version 2)Eitan Adler
Signed-off-by: Eitan Adler <lists@eitanadler.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen: add default patch prefixMihail Konev
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov
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>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer
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>
2015-04-16xev 1.2.2xev-1.2.2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02configure: Drop AM_MAINTAINER_MODEAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-02-13Add event filter for button eventsEgbert Eich
Signed-off-by: Egbert Eich <eich@freedesktop.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-11-27Add -version option to print program versionAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-27Print which option was in error along with usage messageAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-30man: Add -event to the command synopsisAaron Plattner
Commit d33b2c81bd931d581e5ce4b36f99ee60a76e740d added an option, -event, to allow the user to select which events to display. I remembered to add it to the man page's OPTIONS, section, but not to the command summary in the SYNOPSIS section. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-01-29xev 1.2.1xev-1.2.1Aaron Plattner
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2013-01-19Use strncasecmp instead of a tolower loop & strncmpAlan Coopersmith
v2: Since strncasecmp is in Unix98, assume it is always available, and drop fallback code for systems without it. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-19Fix clang warnings about converting size_t to int and back againAlan Coopersmith
xev.c:909:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int len = strlen (s); ~~~ ^~~~~~~~~~ xev.c:917:34: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] if (strncmp (s, "notuseful", len) == 0) return (NotUseful); ~~~~~~~ ^~~ xev.c:918:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] if (strncmp (s, "whenmapped", len) == 0) return (WhenMapped); ~~~~~~~ ^~~ xev.c:919:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] if (strncmp (s, "always", len) == 0) return (Always); ~~~~~~~ ^~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-06-26Add a -event parameter to control the event maskAaron Plattner
It's annoying to have to sift through a lot of unrelated events if all you care about is one specific class of events (e.g. RandR events). Add a -event parameter that can be used to tune which events to select. When not specified, all events are selected. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Andy Ritger <aritger@nvidia.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-21xev 1.2.0xev-1.2.0Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-02-15Rename "mask" variable to "rr_mask" in randr setup code.Alan Coopersmith
Fixes gcc warning: xev.c: In function `main': xev.c:1129: warning: declaration of 'mask' shadows a previous local xev.c:923: warning: shadowed declaration is here Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Remove checks for NULL before XFreeAlan Coopersmith
Replaced if (.*) \(XFree (.*);\) with \1 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Remove render from PKG_CHECK_MODULES listAlan Coopersmith
No direct calls to libXrender functions or #includes of Xrender headers Fixes Solaris ld -z guidance warning: ld: guidance: removal of unused dependency recommended: libXrender.so.1 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Strip 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>
2011-06-09config: Add missing AC_CONFIG_SRCDIRAlan Coopersmith
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-06-09Replace local checks for gcc with _X_NORETURN from xproto 7.0.17Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-03Show RandR eventsMichael Thayer
Signed-off-by: Michael Thayer <michael.thayer@oracle.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Tested-by: Aaron Plattner <aplattner@nvidia.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: replace hard coded man page section with substitution stringsGaetan Nadon
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: remove trailing spaces and tabsGaetan Nadon
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon
This silences an Autoconf warning
2010-10-30xev 1.1.0xev-1.1.0Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-06Purge cvs tags.Jesse Adkins
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>