mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
actually setup the remote_lua protocol on the server
This commit is contained in:
parent
ffbe496599
commit
7ed5c4840d
3 changed files with 36 additions and 15 deletions
|
|
@ -12,7 +12,7 @@ const server = &@import("main.zig").server;
|
|||
|
||||
global: *wl.Global,
|
||||
|
||||
pub fn init() ?*RemoteLuaManager {
|
||||
pub fn init() !?*RemoteLuaManager {
|
||||
const self = try gpa.create(RemoteLuaManager);
|
||||
|
||||
self.global = try wl.Global.create(server.wl_server, mez.RemoteLuaManagerV1, 1, ?*anyopaque, null, bind);
|
||||
|
|
@ -37,10 +37,10 @@ _: ?*anyopaque,
|
|||
.destroy => remote_lua_manager_v1.destroy(),
|
||||
.get_remote => |req| {
|
||||
RemoteLua.create(
|
||||
remote_lua_manager_v1.getClient(),
|
||||
remote_lua_manager_v1.getVersion(),
|
||||
req.id,
|
||||
) catch {
|
||||
remote_lua_manager_v1.getClient(),
|
||||
remote_lua_manager_v1.getVersion(),
|
||||
req.id,
|
||||
) catch {
|
||||
remote_lua_manager_v1.getClient().postNoMemory();
|
||||
Utils.oomPanic();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue