diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-21 16:29:17 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-21 16:29:17 +0200 |
| commit | 94760394b4b57fec09f4fed214dd2bf70993c857 (patch) | |
| tree | c8db1a2fd1bf333dbfb628c295773626744d4952 /src/decoration_manager.zig | |
| parent | 109a74400741f41d7eafcc5062f403cef32c4b46 (diff) | |
| download | river-94760394b4b57fec09f4fed214dd2bf70993c857.tar.gz river-94760394b4b57fec09f4fed214dd2bf70993c857.tar.xz | |
Bikeshed variable names
Diffstat (limited to 'src/decoration_manager.zig')
| -rw-r--r-- | src/decoration_manager.zig | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/decoration_manager.zig b/src/decoration_manager.zig index 256f2a0..cb23e2c 100644 --- a/src/decoration_manager.zig +++ b/src/decoration_manager.zig @@ -28,18 +28,14 @@ pub const DecorationManager = struct { } fn handleNewToplevelDecoration(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void { - const decoration_manager = @fieldParentPtr( - DecorationManager, - "listen_new_toplevel_decoration", - listener.?, - ); + const self = @fieldParentPtr(Self, "listen_new_toplevel_decoration", listener.?); const wlr_xdg_toplevel_decoration = @ptrCast( *c.wlr_xdg_toplevel_decoration_v1, @alignCast(@alignOf(*c.wlr_xdg_toplevel_decoration_v1), data), ); - const node = decoration_manager.decorations.allocateNode(decoration_manager.server.allocator) catch unreachable; - node.data.init(decoration_manager, wlr_xdg_toplevel_decoration); - decoration_manager.decorations.prepend(node); + const node = self.decorations.allocateNode(self.server.allocator) catch unreachable; + node.data.init(self, wlr_xdg_toplevel_decoration); + self.decorations.prepend(node); } }; |
