diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-08-29 18:21:48 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-08-29 18:21:48 +0200 |
| commit | 4feb8c7dab2b0a3492b8248ee12c3f0a475106f1 (patch) | |
| tree | f89a6389e24ab362cbdb21e1dbd4f96b404472fd /src/wl/surface.zig | |
| parent | ed0ec55697b11fa54ff661bc6c250398a096f85a (diff) | |
Use wayland.Context instead of *const wayland.Context
Diffstat (limited to 'src/wl/surface.zig')
| -rw-r--r-- | src/wl/surface.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wl/surface.zig b/src/wl/surface.zig index 7b5116e..07cd80b 100644 --- a/src/wl/surface.zig +++ b/src/wl/surface.zig @@ -31,7 +31,7 @@ preferred_buffer_transform: wl.Output.Transform = .normal, pub fn init( self: *Self, - ctx: *const wayland.Context, + ctx: wayland.Context, ) !void { self.* = .{ .handle = try ctx.display.registry.add_object( @@ -43,14 +43,14 @@ pub fn init( pub fn deinit( self: *Self, - ctx: *const wayland.Context, + ctx: wayland.Context, ) void { ctx.display.registry.disable_object(self.handle); } fn enter( self: *Self, - ctx: *const wayland.Context, + ctx: wayland.Context, output: *wayland.Object, ) void { _ = self; @@ -61,7 +61,7 @@ fn enter( fn leave( self: *Self, - ctx: *const wayland.Context, + ctx: wayland.Context, output: *wayland.Object, ) void { _ = self; @@ -72,7 +72,7 @@ fn leave( fn preferred_buffer_scale_announced( self: *Self, - ctx: *const wayland.Context, + ctx: wayland.Context, factor: u32, ) void { _ = ctx; @@ -82,7 +82,7 @@ fn preferred_buffer_scale_announced( fn preferred_buffer_transform_announced( self: *Self, - ctx: *const wayland.Context, + ctx: wayland.Context, transform: wl.Output.Transform, ) void { _ = ctx; |