From ddbc0dc58681c96da5e127c749f549ea4df5c7b0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 18 Mar 2023 19:40:42 -0700 Subject: [PATCH] apprt/embedded: incorrect function call for new close surface --- src/apprt/embedded.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apprt/embedded.zig b/src/apprt/embedded.zig index 8d12085a8..b782ba8cf 100644 --- a/src/apprt/embedded.zig +++ b/src/apprt/embedded.zig @@ -486,7 +486,7 @@ pub const CAPI = struct { /// Request that the surface become closed. This will go through the /// normal trigger process that a close surface input binding would. export fn ghostty_surface_request_close(ptr: *Surface) void { - ptr.closeSurface() catch {}; + ptr.close(); } /// Request that the surface split in the given direction.