caribou: Add patch to fix for newer vala.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2021-01-15 00:06:20 +07:00
parent 885c578bce
commit 9224212a72
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 14 additions and 0 deletions

View file

@ -75,6 +75,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p1 < $CWD/3.patch
patch -p1 < $CWD/unicode_to_keyval-symbol-check.patch
PYTHON="/usr/bin/python3" \
CFLAGS="$SLKCFLAGS" \

View file

@ -0,0 +1,13 @@
diff --git a/libcaribou/key-model.vala b/libcaribou/key-model.vala
index 89015bc..e88342e 100644
--- a/libcaribou/key-model.vala
+++ b/libcaribou/key-model.vala
@@ -101,7 +101,7 @@ namespace Caribou {
unichar uc;
while (text.get_next_char (ref index, out uc)) {
uint keyval = Gdk.unicode_to_keyval (uc);
- if (keyval != uc | 0x01000000)
+ if (keyval != (uc | 0x01000000))
_keyvals += keyval;
}
} else {