From f5304237b58c61cf2eb023d8a4c91d97c8808d33 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sun, 29 Mar 2020 15:58:04 +0200 Subject: Pass self as immutable where possible --- src/seat.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/seat.zig') diff --git a/src/seat.zig b/src/seat.zig index 3e753ec..a55f128 100644 --- a/src/seat.zig +++ b/src/seat.zig @@ -37,7 +37,7 @@ pub const Seat = struct { c.wl_signal_add(&self.server.wlr_backend.events.new_input, &self.listen_new_input); } - pub fn destroy(self: *Self) void { + pub fn destroy(self: Self) void { self.cursor.destroy(); } @@ -49,7 +49,7 @@ pub const Seat = struct { self.keyboards.append(node); } - fn addPointer(self: *Self, device: *c.struct_wlr_input_device) void { + fn addPointer(self: Self, device: *c.struct_wlr_input_device) void { // We don't do anything special with pointers. All of our pointer handling // is proxied through wlr_cursor. On another compositor, you might take this // opportunity to do libinput configuration on the device to set -- cgit v1.2.3