From 4feb8c7dab2b0a3492b8248ee12c3f0a475106f1 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 29 Aug 2025 18:21:48 +0200 Subject: Use wayland.Context instead of *const wayland.Context --- src/wl/shm/pool.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wl/shm/pool.zig') diff --git a/src/wl/shm/pool.zig b/src/wl/shm/pool.zig index 40486d6..62b6c18 100644 --- a/src/wl/shm/pool.zig +++ b/src/wl/shm/pool.zig @@ -21,7 +21,7 @@ buffer: []u8, pub fn init( self: *Self, - ctx: *const wayland.Context, + ctx: wayland.Context, size: usize, ) !void { var file = try AnonymousFile.init_random(); @@ -38,7 +38,7 @@ pub fn init( }; } -pub fn deinit(self: *Self, ctx: *const wayland.Context) void { +pub fn deinit(self: *Self, ctx: wayland.Context) void { self.file.close(); std.posix.munmap(@alignCast(self.buffer)); ctx.display.registry.disable_object(self.handle); @@ -50,7 +50,7 @@ pub fn deinit(self: *Self, ctx: *const wayland.Context) void { pub fn create_buffer( self: *Self, - ctx: *const wayland.Context, + ctx: wayland.Context, offset: usize, width: usize, height: usize, -- cgit v1.2.3-70-g09d2