1
0
Fork 0
forked from wry/wry

mmap: use MAP_PRIVATE for all keymaps

This commit is contained in:
Julian Orth 2024-12-18 11:57:01 +01:00
parent 206a2ed4fc
commit 9c73a7c7e9
4 changed files with 3 additions and 4 deletions

View file

@ -354,7 +354,7 @@ impl Input {
let data = Rc::new(RefCell::new(Vec::new()));
jay_input::Keymap::handle(&self.tc, input, data.clone(), |d, map| {
let mem = Rc::new(
ClientMem::new(&map.keymap, map.keymap_len as _, true, None, None).unwrap(),
ClientMem::new_private(&map.keymap, map.keymap_len as _, true, None, None).unwrap(),
)
.offset(0);
mem.read(d.borrow_mut().deref_mut()).unwrap();