Fallback on ctypes' find_library to load libxkbcommon

This commit is contained in:
Kovid Goyal 2019-06-11 16:58:57 +05:30
parent 9da095ca50
commit 8d21a5b6b3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -23,6 +23,10 @@ else:
break
except Exception:
pass
else:
from ctypes.util import find_library
lib = find_library('xkbcommon')
f = lib.xkb_keysym_from_name
f.argtypes = [ctypes.c_char_p, ctypes.c_int]
f.restype = ctypes.c_int