mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-28 10:13:54 +00:00
core: remove Surface.shouldClose
This was a noop in all of our apprts and I think is a holdover from the glfw days.
This commit is contained in:
12
src/App.zig
12
src/App.zig
@@ -132,18 +132,6 @@ pub fn destroy(self: *App) void {
|
||||
/// events. This should be called by the application runtime on every loop
|
||||
/// tick.
|
||||
pub fn tick(self: *App, rt_app: *apprt.App) !void {
|
||||
// If any surfaces are closing, destroy them
|
||||
var i: usize = 0;
|
||||
while (i < self.surfaces.items.len) {
|
||||
const surface = self.surfaces.items[i];
|
||||
if (surface.shouldClose()) {
|
||||
surface.close(false);
|
||||
continue;
|
||||
}
|
||||
|
||||
i += 1;
|
||||
}
|
||||
|
||||
// Drain our mailbox
|
||||
try self.drainMailbox(rt_app);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user