mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
try to not crash on keymap callbacks
This commit is contained in:
parent
94295d3d69
commit
9d5240aaa5
1 changed files with 3 additions and 1 deletions
|
|
@ -30,7 +30,9 @@ pub fn callback(self: *const Keymap, release: bool) void {
|
|||
return;
|
||||
}
|
||||
|
||||
Lua.state.call(.{ .args = 0, .results = 0 });
|
||||
Lua.state.protectedCall(.{ .args = 0, .results = 0 }) catch {
|
||||
// TODO: add a callback to remote lua when that gets merged
|
||||
};
|
||||
Lua.state.pop(-1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue