fix: changes from newest zig version
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m3s
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m3s
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user