Merge branch 'mez_remote_lua' into dev

This commit is contained in:
Squibid 2025-12-10 20:19:42 -05:00
commit 1f2e333846
Signed by: squibid
GPG key ID: BECE5684D3C4005D
7 changed files with 293 additions and 39 deletions

View file

@ -8,6 +8,7 @@ const wlr = @import("wlroots");
const zlua = @import("zlua");
const Event = @import("Events.zig");
const RemoteLua = @import("../RemoteLua.zig");
const Lua = &@import("../main.zig").lua;
events: std.ArrayList([]const u8), // a list of events
@ -39,7 +40,7 @@ pub fn callback(self: *const Hook, args: anytype) void {
}
Lua.state.protectedCall(.{ .args = i }) catch {
// TODO: add a callback to remote lua when that gets merged
RemoteLua.sendNewLogEntry(Lua.state.toString(-1) catch unreachable);
};
Lua.state.pop(-1);
}