mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
added process spawning
This commit is contained in:
parent
23ef0049f7
commit
2e2cfeebae
5 changed files with 47 additions and 249 deletions
|
|
@ -23,9 +23,10 @@ pub fn callback(self: *const Keymap) void {
|
|||
const t = Lua.state.rawGetIndex(zlua.registry_index, self.lua_ref_idx);
|
||||
if (t != zlua.LuaType.function) {
|
||||
std.log.err("Failed to call keybind, it doesn't have a callback.", .{});
|
||||
Lua.state.pop(1);
|
||||
return;
|
||||
}
|
||||
Lua.state.pushValue(1);
|
||||
|
||||
Lua.state.call(.{ .args = 0, .results = 0 });
|
||||
Lua.state.pop(-1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue