diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2025-09-29 10:53:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-29 10:53:56 -0700 |
| commit | f73666a7a1d7a1af57a1ba4481032f3b529376ae (patch) | |
| tree | 23e3bbe44683d30c0a5c81f8b95db4114cbc7b5d /src/font/Collection.zig | |
| parent | a2663692bb2e4e3ece3cf5fab15365d524fcc6dd (diff) | |
| parent | 3fdb52e48d528ad80698d59c4194c13e84eff51e (diff) | |
apprt/gtk: do not close window if tab overview is open with no tabs (#8955)
Fixes #8944
When we drag the only tab out of the tab overview, this triggers an
`n-pages` signal with 0 pages. If we close the window in this state, it
causes both Ghostty to exit AND the drag/drop to fail. Even if we
pre-empt Ghostty exiting by modifying the application class, the
drag/drop still fails and the application leaks memory and enters a bad
state.
The solution is to keep the window open if we go to `n-pages == 0` and
we have the tab overview open.
Interestingly, if you click to close the final tab from the tab
overview, Adwaita closes the tab overview so it still triggers the
window closing behavior (this is good, this is desired).
Diffstat (limited to 'src/font/Collection.zig')
0 files changed, 0 insertions, 0 deletions
