aboutsummaryrefslogtreecommitdiff
path: root/src/wl/compositor.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-08-29 18:21:48 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2025-08-29 18:21:48 +0200
commit4feb8c7dab2b0a3492b8248ee12c3f0a475106f1 (patch)
treef89a6389e24ab362cbdb21e1dbd4f96b404472fd /src/wl/compositor.zig
parented0ec55697b11fa54ff661bc6c250398a096f85a (diff)
Use wayland.Context instead of *const wayland.Context
Diffstat (limited to 'src/wl/compositor.zig')
-rw-r--r--src/wl/compositor.zig6
1 files changed, 3 insertions, 3 deletions
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);