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/compositor.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wl/compositor.zig') diff --git a/src/wl/compositor.zig b/src/wl/compositor.zig index ae8d15e..166430a 100644 --- a/src/wl/compositor.zig +++ b/src/wl/compositor.zig @@ -22,7 +22,7 @@ pub const handler: wl.Registry.GlobalHandler = .{ pub fn init( self: *Self, - ctx: *const wayland.Context + ctx: wayland.Context ) !void { self.* = .{ .handle = try ctx.display.registry.add_object( @@ -32,7 +32,7 @@ pub fn init( }; } -fn register(ctx: *const wayland.Context) ?wayland.Object.Ref { +fn register(ctx: wayland.Context) ?wayland.Object.Ref { const compositor = ctx.allocator.create(Self) catch return null; compositor.init(ctx) catch return null; @@ -55,7 +55,7 @@ pub fn format( pub fn create_surface( self: *Self, - ctx: *const wayland.Context + ctx: wayland.Context ) !*wl.Surface { const surface = try ctx.allocator.create(wl.Surface); errdefer ctx.allocator.destroy(surface); -- cgit v1.2.3-70-g09d2