aboutsummaryrefslogtreecommitdiff
path: root/src/seat.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-03-29 15:58:04 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-03-29 15:58:04 +0200
commitf5304237b58c61cf2eb023d8a4c91d97c8808d33 (patch)
treedd2190a3e88cc97b9e8075c8babcad8f7257a77a /src/seat.zig
parent9d0a41c0d2d17783e16861cce6313ebc5c713252 (diff)
downloadriver-f5304237b58c61cf2eb023d8a4c91d97c8808d33.tar.gz
river-f5304237b58c61cf2eb023d8a4c91d97c8808d33.tar.xz
Pass self as immutable where possible
Diffstat (limited to 'src/seat.zig')
-rw-r--r--src/seat.zig4
1 files changed, 2 insertions, 2 deletions
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