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 3f251c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/native/linux_x11/libx11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,8 @@ pub struct LibXkbCommon {
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 3f251c7

Please sign in to comment.