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.zig | |
| parent | 109a74400741f41d7eafcc5062f403cef32c4b46 (diff) | |
| download | river-94760394b4b57fec09f4fed214dd2bf70993c857.tar.gz river-94760394b4b57fec09f4fed214dd2bf70993c857.tar.xz | |
Bikeshed variable names
Diffstat (limited to 'src/decoration.zig')
| -rw-r--r-- | src/decoration.zig | 4 |
1 files changed, 2 insertions, 2 deletions
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, ); } |
