From c645c2efee5ff57fa6fb2b9f9155cf21723bf085 Mon Sep 17 00:00:00 2001 From: Yves Biener Date: Sat, 1 Nov 2025 00:03:04 +0100 Subject: [PATCH] fix: changes from newest zig version --- src/app.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.zig b/src/app.zig index 249b3c2..c5f7523 100644 --- a/src/app.zig +++ b/src/app.zig @@ -34,7 +34,7 @@ pub fn App(comptime M: type, comptime E: type) type { // global variable for the registered handler for WINCH var handler_ctx: *anyopaque = undefined; /// registered WINCH handler to report resize events - fn handleWinch(_: c_int) callconv(.c) void { + fn handleWinch(_: std.os.linux.SIG) callconv(.c) void { const this: *@This() = @ptrCast(@alignCast(handler_ctx)); // NOTE this does not have to be done if in-band resize events are supported // -> the signal might not work correctly when hosting the application over ssh! @@ -45,7 +45,7 @@ pub fn App(comptime M: type, comptime E: type) type { return .{ .model = model, .queue = .{}, - .quit_event = .{}, + .quit_event = .unset, }; }