aboutsummaryrefslogtreecommitdiff
path: root/src/Mode.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-05-26 22:55:07 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-05-31 21:04:25 +0200
commitd9ca9db5a49f0af2f6bef6f198b28a8d29808e6d (patch)
treeebeb7de70a63bfff951e9eaa069f7885aa34a2dc /src/Mode.zig
parent9cd61f75903a83e56538ae3d69e7c2f3d2e6ca10 (diff)
downloadriver-d9ca9db5a49f0af2f6bef6f198b28a8d29808e6d.tar.gz
river-d9ca9db5a49f0af2f6bef6f198b28a8d29808e6d.tar.xz
Rework commands to be string based
This allows for significantly more flexibility and should make implementing the bind command possible.
Diffstat (limited to 'src/Mode.zig')
-rw-r--r--src/Mode.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mode.zig b/src/Mode.zig
index dfc4f54..b63481e 100644
--- a/src/Mode.zig
+++ b/src/Mode.zig
@@ -38,6 +38,6 @@ pub fn init(name: []const u8, allocator: *std.mem.Allocator) !Self {
pub fn deinit(self: Self) void {
const allocator = self.keybinds.allocator;
allocator.free(self.name);
- for (self.keybinds.items) |keybind| keybind.command.deinit(allocator);
+ for (self.keybinds.items) |keybind| keybind.deinit(allocator);
self.keybinds.deinit();
}