mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
implement the zmez_remote_lua_v1 protocol
This commit is contained in:
parent
ffec7db766
commit
ffbe496599
4 changed files with 113 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ const xkb = @import("xkbcommon");
|
|||
const wlr = @import("wlroots");
|
||||
const zlua = @import("zlua");
|
||||
|
||||
const RemoteLua = @import("../RemoteLua.zig");
|
||||
const Event = @import("events.zig");
|
||||
const Lua = &@import("../main.zig").lua;
|
||||
|
||||
|
|
@ -38,6 +39,8 @@ pub fn callback(self: *const Hook, args: anytype) void {
|
|||
i = k;
|
||||
}
|
||||
|
||||
Lua.state.protectedCall(.{ .args = i }) catch { };
|
||||
Lua.state.protectedCall(.{ .args = i }) catch {
|
||||
RemoteLua.sendNewLogEntry(Lua.state.toString(-1) catch unreachable);
|
||||
};
|
||||
Lua.state.pop(-1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue