From 8fbafda3d3945a725a3e4fa4b653b6c7e4b3d1d1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 23 Feb 2023 12:02:37 -0800 Subject: [PATCH] gtk: listen to should quit from app --- src/apprt/gtk.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apprt/gtk.zig b/src/apprt/gtk.zig index 572d64fbc..ceddb59eb 100644 --- a/src/apprt/gtk.zig +++ b/src/apprt/gtk.zig @@ -109,7 +109,7 @@ pub const App = struct { // Tick the terminal app const should_quit = try self.core_app.tick(self); - if (false and should_quit) return; + if (should_quit) return; } } @@ -313,6 +313,7 @@ pub const Surface = struct { // Clean up our core surface so that all the rendering and IO stop. self.core_surface.deinit(); + self.core_surface = undefined; } pub fn setShouldClose(self: *Surface) void {