Fallback on ctypes' find_library to load libxkbcommon
This commit is contained in:
parent
9da095ca50
commit
8d21a5b6b3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user