diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-13 19:25:37 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-13 19:25:37 +0200 |
| commit | 3cb52c4898cb387d1e9b185479e4187f2a1a711a (patch) | |
| tree | b9713e85de0dc67862639397c01484623e4ca5f6 /src/seat.zig | |
| parent | b822084f39b568d7a1b65b0df7e77ec1dbb3c0bb (diff) | |
| download | river-3cb52c4898cb387d1e9b185479e4187f2a1a711a.tar.gz river-3cb52c4898cb387d1e9b185479e4187f2a1a711a.tar.xz | |
Parially refactor commands to take a *Seat
Diffstat (limited to 'src/seat.zig')
| -rw-r--r-- | src/seat.zig | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |
