From 8a7392dea729d3ed49a8bf8eee25906c4fd616ac Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 27 Aug 2025 09:02:43 +0200 Subject: Add ancillary data mechanism to send fds to compositor. Currently we are just attaching the fds to the object id. In theory this is not a valid implementation, since if we have more than MAX_FD file descriptors this will not work. But since this wont be the case in basically all cases of the wayland protocol, we can just ignore that for now. --- src/wl/callback.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wl/callback.zig') diff --git a/src/wl/callback.zig b/src/wl/callback.zig index c17e190..24927b4 100644 --- a/src/wl/callback.zig +++ b/src/wl/callback.zig @@ -13,7 +13,7 @@ handle: wayland.Object.Ref, pub fn init( self: *Self, - ctx: *wayland.Context, + ctx: *const wayland.Context, is_done: *bool, ) !void { self.is_done = is_done; @@ -25,11 +25,11 @@ pub fn init( } -pub fn deinit(self: *Self, ctx: *wayland.Context) void { +pub fn deinit(self: *Self, ctx: *const wayland.Context) void { ctx.display.registry.disable_object(self.handle); } -fn done(self: *Self, ctx: *wayland.Context, value: u32) void { +fn done(self: *Self, ctx: *const wayland.Context, value: u32) void { _ = value; _ = ctx; self.is_done.* = true; -- cgit v1.2.3-70-g09d2