aboutsummaryrefslogtreecommitdiff
path: root/src/wl/compositor.zig
diff options
context:
space:
mode:
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);