update libxev to fix split writes on large writes (i.e. big paste)

Fixes #258

This was an upstream bug in libxev where partial the queueWrite
mechanism would not correctly handle partial write results:
https://github.com/mitchellh/libxev/pull/60
This commit is contained in:
Mitchell Hashimoto
2023-08-09 08:18:43 -07:00
parent 5854be9855
commit e33f6c71de
4 changed files with 11 additions and 8 deletions

View File

@ -673,13 +673,16 @@ fn addDeps(
if (font_backend.hasFontconfig()) step.addModule("fontconfig", fontconfig.module(b));
const mod_freetype = freetype.module(b);
const mod_macos = macos.module(b);
const mod_libxev = b.createModule(.{
.source_file = .{ .path = "vendor/libxev/src/main.zig" },
});
step.addModule("freetype", mod_freetype);
step.addModule("harfbuzz", harfbuzz.module(b, .{
.freetype = mod_freetype,
.macos = mod_macos,
}));
step.addModule("imgui", imgui.module(b));
step.addModule("xev", libxev.module(b));
step.addModule("xev", mod_libxev);
step.addModule("pixman", pixman.module(b));
step.addModule("stb_image_resize", stb_image_resize.module(b));
step.addModule("utf8proc", utf8proc.module(b));

View File

@ -370,11 +370,11 @@ fn cursorCancelCallback(
r: xev.Timer.CancelError!void,
) xev.CallbackAction {
_ = r catch |err| switch (err) {
error.NotFound => {},
else => {
log.warn("error in cursor cancel callback err={}", .{err});
unreachable;
},
error.Canceled => {},
// else => {
// log.warn("error in cursor cancel callback err={}", .{err});
// unreachable;
// },
};
return .disarm;

View File

@ -483,7 +483,7 @@ fn ttyWrite(
return .disarm;
};
_ = d;
//log.info("WROTE: {d}", .{status});
//log.info("WROTE: {d}", .{d});
return .disarm;
}

2
vendor/libxev vendored

@ -1 +1 @@
Subproject commit a3e5c9b263775d6955dd3eccfb0e8931346f48c4
Subproject commit 32e67d79ec11d3e976a89b10b4a0c50d2d66ec75