We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11d72d8 commit c3d7fdbCopy full SHA for c3d7fdb
druid-shell/src/backend/shared/xkb/mod.rs
@@ -79,6 +79,7 @@ impl Context {
79
/// Create a keymap from some given data.
80
///
81
/// Uses `xkb_keymap_new_from_buffer` under the hood.
82
+ #[cfg(feature = "wayland")]
83
pub fn keymap_from_slice(&self, buffer: &[u8]) -> Keymap {
84
// TODO we hope that the keymap doesn't borrow the underlying data. If it does' we need to
85
// use Rc. We'll find out soon enough if we get a segfault.
0 commit comments