From 425c86179791cd32e2d4ce0ae7f269940b4b0663 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 10 Sep 2026 21:51:57 +0300 Subject: chore: upgrade libghostty and preserve terminal behavior (#3906) --- vendor/libghostty-vt/src/os/cf_release_thread.zig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vendor/libghostty-vt/src/os/cf_release_thread.zig') diff --git a/vendor/libghostty-vt/src/os/cf_release_thread.zig b/vendor/libghostty-vt/src/os/cf_release_thread.zig index 445dc486..e93120b3 100644 --- a/vendor/libghostty-vt/src/os/cf_release_thread.zig +++ b/vendor/libghostty-vt/src/os/cf_release_thread.zig @@ -9,7 +9,8 @@ const builtin = @import("builtin"); const macos = @import("macos"); const internal_os = @import("../os/main.zig"); -const xev = @import("../global.zig").xev; +const global = @import("../global.zig"); +const xev = global.xev; const BlockingQueue = @import("../datastruct/main.zig").BlockingQueue; const Allocator = std.mem.Allocator; @@ -142,11 +143,11 @@ fn threadMain_(self: *Thread) !void { fn drainMailbox(self: *Thread) !void { // If we're draining, we just drain the mailbox and return. if (self.flags.drain) { - while (self.mailbox.pop()) |_| {} + while (self.mailbox.pop(global.io())) |_| {} return; } - while (self.mailbox.pop()) |message| { + while (self.mailbox.pop(global.io())) |message| { // log.debug("mailbox message={}", .{message}); switch (message) { .release => |msg| { -- cgit v1.2.3