diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-03-24 20:35:45 +0100 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-03-24 20:35:45 +0100 |
| commit | b3bad0ca9372d4dee1baca634591d82aefa5cb5c (patch) | |
| tree | cfd164558cdffff4e5b1de82645b277b3c84f37c /src/keyboard.zig | |
| parent | 4872a6837817aef9e88d6ad5a3170c000c884640 (diff) | |
| download | river-b3bad0ca9372d4dee1baca634591d82aefa5cb5c.tar.gz river-b3bad0ca9372d4dee1baca634591d82aefa5cb5c.tar.xz | |
Make all things const
The quest for idiomatic zig continues
Diffstat (limited to 'src/keyboard.zig')
| -rw-r--r-- | src/keyboard.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.zig b/src/keyboard.zig index 1f84772..6aab328 100644 --- a/src/keyboard.zig +++ b/src/keyboard.zig @@ -52,7 +52,7 @@ pub const Keyboard = struct { fn handle_modifiers(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void { // This event is raised when a modifier key, such as shift or alt, is // pressed. We simply communicate this to the client. */ - var keyboard = @fieldParentPtr(Keyboard, "listen_modifiers", listener.?); + const keyboard = @fieldParentPtr(Keyboard, "listen_modifiers", listener.?); // A seat can only have one keyboard, but this is a limitation of the // Wayland protocol - not wlroots. We assign all connected keyboards to the |
