diff options
author | Ran Benita <ran234@gmail.com> | 2011-12-30 22:00:07 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2011-12-31 16:52:22 +0100 |
commit | 7c9fb7bf2956a0664ed64335d5caceef1048a914 (patch) | |
tree | 0a2fff00f3fde7594bec4bdf5a702f30ef46f5bf /tests | |
parent | c3912b23a2f64d97e81955622a1ca2d78bb6a829 (diff) |
input: don't use 0 to signal lack of unicode value
0 is actually a valid unicode value, so instead we use
KMSCON_INPUT_INVALID which is not legal unicode.
Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_input.c b/tests/test_input.c index f5523ac..3bda398 100644 --- a/tests/test_input.c +++ b/tests/test_input.c @@ -90,7 +90,7 @@ static void input_arrived(struct kmscon_input *input, char s[16]; char utf8[MB_CUR_MAX + 1]; - if (ev->unicode == 0) { + if (ev->unicode == KMSCON_INPUT_INVALID) { xkb_keysym_to_string(ev->keysym, s, sizeof(s)); printf("sym %s ", s); } else { |