Skip to content

Commit

Permalink
libxkbcommon hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
not-fl3 committed Jun 25, 2024
1 parent 72b0e70 commit d26efb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/native/linux_x11/libx11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,8 @@ impl LibXkbCommon {
pub fn try_load() -> Option<Self> {
crate::native::module::Module::load("libxkbcommon.so")
.or_else(|_| crate::native::module::Module::load("libxkbcommon.so.6"))
.or_else(|_| crate::native::module::Module::load("libxkbcommon.so.0"))
.or_else(|_| crate::native::module::Module::load("libxkbcommon.so.0.0.0.0"))
.map(|module| LibXkbCommon {
xkb_keysym_to_utf32: module.get_symbol("xkb_keysym_to_utf32").unwrap(),
module: std::rc::Rc::new(module),
Expand Down

0 comments on commit d26efb2

Please sign in to comment.