diff options
Diffstat (limited to 'src/wl/compositor.zig')
| -rw-r--r-- | src/wl/compositor.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wl/compositor.zig b/src/wl/compositor.zig index 6951446..18db0f0 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: *wayland.Context + ctx: *const wayland.Context ) !void { self.* = .{ .handle = try ctx.display.registry.add_object( @@ -32,7 +32,7 @@ pub fn init( }; } -fn register(ctx: *wayland.Context) ?wayland.Object.Ref { +fn register(ctx: *const wayland.Context) ?wayland.Object.Ref { const compositor = ctx.allocator.create(Self) catch return null; compositor.init(ctx) catch return null; |