aboutsummaryrefslogtreecommitdiff
path: root/src/keyboard.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboard.zig')
-rw-r--r--src/keyboard.zig2
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