diff --git a/caribou/caribou.SlackBuild b/caribou/caribou.SlackBuild index bfb8bd4..ea2905d 100644 --- a/caribou/caribou.SlackBuild +++ b/caribou/caribou.SlackBuild @@ -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" \ diff --git a/caribou/unicode_to_keyval-symbol-check.patch b/caribou/unicode_to_keyval-symbol-check.patch new file mode 100644 index 0000000..e7f9acc --- /dev/null +++ b/caribou/unicode_to_keyval-symbol-check.patch @@ -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 {