Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gtk): fix segfault on ctrl-d on older adw (#4971)
Ghostty with libadwaita older than 1.4.0 (in my case, that of debian bookworm) will segfault when you exit ghostty with ctrl+d. This was already fixed by #3694 but it re-appeared during a refactor. The fix simply uses a reference to `tab.window.window` to call `gtk_window_destroy`, because `tab.window` has already been [destroyed by a signal handler](https://github.com/ghostty-org/ghostty/blob/6cbd69da7839260508466f9dfb2bc0c0fbb43991/src/apprt/gtk/Tab.zig#L130-L137) triggered in the old libadwaita path. Original issue: #3135
- Loading branch information