1
0
Fork 0
forked from wry/wry

shm: close client buffers in the cpu worker

This commit is contained in:
Julian Orth 2024-09-07 22:54:36 +02:00
parent d40e605f66
commit ece56d91d3
7 changed files with 79 additions and 16 deletions

View file

@ -353,9 +353,10 @@ impl Input {
async fn handle_keymap(&self, input: JayInputId) -> Vec<u8> {
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).unwrap())
.offset(0);
let mem = Rc::new(
ClientMem::new(&map.keymap, map.keymap_len as _, true, None, None).unwrap(),
)
.offset(0);
mem.read(d.borrow_mut().deref_mut()).unwrap();
});
self.tc.round_trip().await;