Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Eitan Adler <lists@eitanadler.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Signed-off-by: Egbert Eich <eich@freedesktop.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Replaced if (.*) \(XFree (.*);\) with \1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
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>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
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>
|
|
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
|
|
Signed-off-by: Kim Woelders <kim@woelders.dk>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
When redirecting the output of xev (eg, xev > foo), the output file is
truncated on exit due to libc buffering, since xev's exit(0) is
unreachable code. Reported by Bill Currie.
Debian bug#238638 <http://bugs.debian.org/238638>
|
|
From bug 319ยน:
Make xev exit on WM_DELETE_WINDOW.
1] https://bugs.freedesktop.org/show_bug.cgi?id=319
Signed-off-by: James Cloos <cloos@jhcloos.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new license. If we want to, later we can import 4.4RC3 again and pick
up the files that have the new license, but for now the vendor branch
is "pure."
|
|
|
|
|