diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2015-08-05 13:26:30 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2015-08-05 13:26:30 +0100 |
commit | bb8942532aff518f9fdf263238978a5d8c0494b9 (patch) | |
tree | 5f2cff0410803801ca15c50bab28c63916493a84 | |
parent | 856daf2443ee60f6b56e469e3a7f6600e599aaee (diff) |
Fix conversion and print of KeymapNotify
The char is an array of bit do not convert to a integer and format
unsigned as this lead to a big number.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r-- | xev.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -271,7 +271,7 @@ do_KeymapNotify (XEvent *eventp) printf (" keys: "); for (i = 0; i < 32; i++) { if (i == 16) printf ("\n "); - printf ("%-3u ", (unsigned int) e->key_vector[i]); + printf ("%-3u ", (unsigned char) e->key_vector[i]); } printf ("\n"); } |