mmap: use MAP_PRIVATE for all keymaps
This commit is contained in:
parent
206a2ed4fc
commit
9c73a7c7e9
4 changed files with 3 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue