From ae5172b8a1eda84d53b768428ec6ce46fd83c09a Mon Sep 17 00:00:00 2001 From: Daniel Jordan <22369635+brokenloop@users.noreply.github.com> Date: Sat, 9 Jan 2021 15:12:23 -0500 Subject: [PATCH] Update xkb_keymap reference (#233) The xkbcommon_sys crate seems to have been updated today, and now the minifb project won't compile. We can fix this by updating XKB_KEYMAP_FORMAT_TEXT_v1 to XKB_KEYMAP_FORMAT_TEXT_V1. --- src/os/posix/wayland.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/posix/wayland.rs b/src/os/posix/wayland.rs index 8b62161..4c595a4 100644 --- a/src/os/posix/wayland.rs +++ b/src/os/posix/wayland.rs @@ -1055,7 +1055,7 @@ impl Window { let kb_map_ptr = xkbcommon_sys::xkb_keymap_new_from_string( ctx, v.as_ptr() as *const _ as *const std::os::raw::c_char, - xkbcommon_sys::xkb_keymap_format::XKB_KEYMAP_FORMAT_TEXT_v1, + xkbcommon_sys::xkb_keymap_format::XKB_KEYMAP_FORMAT_TEXT_V1, 0, );