mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
apprt/gtk: do not ask for confirm window close if all surfaces idle
This commit is contained in:
@ -594,6 +594,13 @@ const Window = struct {
|
||||
log.debug("window close request", .{});
|
||||
const self = userdataSelf(ud.?);
|
||||
|
||||
// If none of our surfaces need confirmation, we can just exit.
|
||||
for (self.app.core_app.surfaces.items) |surface| {
|
||||
if (surface.window == self) {
|
||||
if (surface.core_surface.needsConfirmQuit()) break;
|
||||
}
|
||||
} else return false;
|
||||
|
||||
// Setup our basic message
|
||||
const alert = c.gtk_message_dialog_new(
|
||||
self.window,
|
||||
|
Reference in New Issue
Block a user