From 94760394b4b57fec09f4fed214dd2bf70993c857 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 21 Apr 2020 16:29:17 +0200 Subject: Bikeshed variable names --- src/decoration.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/decoration.zig') diff --git a/src/decoration.zig b/src/decoration.zig index dbf0342..5e8df06 100644 --- a/src/decoration.zig +++ b/src/decoration.zig @@ -27,10 +27,10 @@ pub const Decoration = struct { } fn handleRequestMode(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void { - const decoration = @fieldParentPtr(Decoration, "listen_request_mode", listener.?); + const self = @fieldParentPtr(Self, "listen_request_mode", listener.?); // TODO: we might need to take this configure serial and do a transaction _ = c.wlr_xdg_toplevel_decoration_v1_set_mode( - decoration.wlr_xdg_toplevel_decoration, + self.wlr_xdg_toplevel_decoration, c.wlr_xdg_toplevel_decoration_v1_mode.WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE, ); } -- cgit v1.2.3