Update xev to version 1.2.5

pull/1/head
matthieu 2022-07-15 12:42:48 +00:00
parent 3fedd5395e
commit d52fcaab18
7 changed files with 78 additions and 23 deletions

View File

@ -1,3 +1,57 @@
commit 19e473aa6b1fbd01bb8c7206c06aacf5e789d758
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Tue Jul 12 09:58:53 2022 -0700
xev 1.2.5
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit 26b84c02c547bb233dc7a273cb3745eef2aadadd
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Sat Apr 2 12:56:12 2022 -0700
man page: remove out-of-date reference to X(7)
The X(7) man page doesn't list any license information as this had claimed.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit eedd0fed999e515618816ca831b8de3b3011c993
Author: Goblin <xorg-nospam@uukgoblin.net>
Date: Fri Feb 18 22:20:07 2022 +0000
xev: fix KeymapNotify event printing
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>
commit ad23b1e9f4463017f76534300925aa08c055df48
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Mon Dec 6 11:46:26 2021 -0800
Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit 126ef9076e51beb1897321025220dd1828568caf
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Mon Dec 6 11:46:13 2021 -0800
gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit b798a62cb701050381ed8b05c2fb7204357a7241
Author: Matt Turner <mattst88@gmail.com>
Date: Fri Jul 17 15:07:14 2020 -0700
@ -690,7 +744,7 @@ Date: Wed Jul 20 19:31:52 2005 +0000
configure cache, you cache it, and the cached value is probably wrong.
commit 275174c66316b789f96ec23974de50499ea3c5a2
Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
Date: Wed Jul 6 19:58:25 2005 +0000
Build system for xev

View File

@ -179,9 +179,9 @@ am__relativize = \
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz
GZIP_ENV = --best
DIST_TARGETS = dist-bzip2 dist-gzip
DIST_TARGETS = dist-xz dist-gzip
distuninstallcheck_listfiles = find . -type f -print
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
@ -642,6 +642,7 @@ distdir: $(DISTFILES)
dist-gzip: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__post_remove_distdir)
dist-bzip2: distdir
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
$(am__post_remove_distdir)
@ -649,7 +650,6 @@ dist-bzip2: distdir
dist-lzip: distdir
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
$(am__post_remove_distdir)
dist-xz: distdir
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
$(am__post_remove_distdir)

View File

@ -3,7 +3,7 @@
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
# Copyright (C) 1999-2021 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
@ -53,7 +53,7 @@ func_file_conv ()
MINGW*)
file_conv=mingw
;;
CYGWIN*)
CYGWIN* | MSYS*)
file_conv=cygwin
;;
*)
@ -67,7 +67,7 @@ func_file_conv ()
mingw/*)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
cygwin/*)
cygwin/* | msys/*)
file=`cygpath -m "$file" || echo "$file"`
;;
wine/*)

20
app/xev/configure vendored
View File

@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for xev 1.2.4.
# Generated by GNU Autoconf 2.69 for xev 1.2.5.
#
# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xev/issues>.
#
@ -581,8 +581,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='xev'
PACKAGE_TARNAME='xev'
PACKAGE_VERSION='1.2.4'
PACKAGE_STRING='xev 1.2.4'
PACKAGE_VERSION='1.2.5'
PACKAGE_STRING='xev 1.2.5'
PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xev/issues'
PACKAGE_URL=''
@ -1322,7 +1322,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures xev 1.2.4 to adapt to many kinds of systems.
\`configure' configures xev 1.2.5 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1393,7 +1393,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of xev 1.2.4:";;
short | recursive ) echo "Configuration of xev 1.2.5:";;
esac
cat <<\_ACEOF
@ -1500,7 +1500,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
xev configure 1.2.4
xev configure 1.2.5
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@ -1848,7 +1848,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by xev $as_me 1.2.4, which was
It was created by xev $as_me 1.2.5, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@ -3988,7 +3988,7 @@ fi
# Define the identity of the package.
PACKAGE='xev'
VERSION='1.2.4'
VERSION='1.2.5'
cat >>confdefs.h <<_ACEOF
@ -11189,7 +11189,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by xev $as_me 1.2.4, which was
This file was extended by xev $as_me 1.2.5, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@ -11255,7 +11255,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
xev config.status 1.2.4
xev config.status 1.2.5
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"

View File

@ -22,14 +22,14 @@ dnl Process this file with autoconf to create configure.
# Initialize Autoconf
AC_PREREQ([2.60])
AC_INIT([xev], [1.2.4],
AC_INIT([xev], [1.2.5],
[https://gitlab.freedesktop.org/xorg/app/xev/issues], [xev])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
AC_USE_SYSTEM_EXTENSIONS
# Initialize Automake
AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_INIT_AUTOMAKE([foreign dist-xz])
# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
m4_ifndef([XORG_MACROS_VERSION],

View File

@ -69,7 +69,5 @@ This option prints the program version and exits.
.SH "SEE ALSO"
X(__miscmansuffix__), xwininfo(__appmansuffix__), xdpyinfo(__appmansuffix__), Xlib Programmers Manual, X Protocol
Specification
.br
See \fIX(__miscmansuffix__)\fP for a full statement of rights and permissions.
.SH AUTHOR
Jim Fulton, MIT X Consortium

View File

@ -139,9 +139,12 @@ static void
prologue(XEvent *eventp, const char *event_name)
{
XAnyEvent *e = (XAnyEvent *) eventp;
struct timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
output(InitialNewLine | NewLine,
"%s event, serial %ld, synthetic %s, window 0x%lx,",
"%s %s event, serial %ld, synthetic %s, window 0x%lx,",
ctime(&(ts.tv_sec)),
event_name, e->serial, e->send_event ? Yes : No, e->window);
}
@ -420,7 +423,7 @@ do_KeymapNotify(XEvent *eventp)
if (i == 16 && !single_line) {
output(InitialNewLine | Indent, " ");
}
output(0, "%-3u ", (unsigned int) e->key_vector[i]);
output(0, "%-3u ", (unsigned char) e->key_vector[i]);
}
output_new_line();
}