From 3cb52c4898cb387d1e9b185479e4187f2a1a711a Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 13 Apr 2020 19:25:37 +0200 Subject: Parially refactor commands to take a *Seat --- src/seat.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/seat.zig') diff --git a/src/seat.zig b/src/seat.zig index 674f0eb..646945c 100644 --- a/src/seat.zig +++ b/src/seat.zig @@ -36,11 +36,11 @@ pub const Seat = struct { /// Handle any user-defined keybinding for the passed keysym and modifiers /// Returns true if the key was handled - pub fn handleKeybinding(self: Self, keysym: c.xkb_keysym_t, modifiers: u32) bool { + pub fn handleKeybinding(self: *Self, keysym: c.xkb_keysym_t, modifiers: u32) bool { for (self.input_manager.server.config.keybinds.items) |keybind| { if (modifiers == keybind.modifiers and keysym == keybind.keysym) { // Execute the bound command - keybind.command(self.input_manager.server, keybind.arg); + keybind.command(self, keybind.arg); return true; } } -- cgit v1.2.3