From b3bad0ca9372d4dee1baca634591d82aefa5cb5c Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 24 Mar 2020 20:35:45 +0100 Subject: Make all things const The quest for idiomatic zig continues --- src/keyboard.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/keyboard.zig') 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 -- cgit v1.2.3