mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
server: purge *all* buffers when a terminal shuts down
Previously we only purged the main grid buffers. Now we also purge the search buffers and the CSD buffers.
This commit is contained in:
parent
6a35abb6ca
commit
f7572d4ab1
1 changed files with 7 additions and 2 deletions
9
server.c
9
server.c
|
|
@ -87,8 +87,13 @@ term_shutdown_handler(void *data, int exit_code)
|
|||
{
|
||||
struct client *client = data;
|
||||
|
||||
shm_purge(client->server->wayl->shm,
|
||||
(unsigned long)(uintptr_t)client->term);
|
||||
struct wl_shm *shm = client->server->wayl->shm;
|
||||
struct terminal *term = client->term;
|
||||
|
||||
shm_purge(shm, shm_cookie_grid(term));
|
||||
shm_purge(shm, shm_cookie_search(term));
|
||||
for (enum csd_surface surf = 0; surf < CSD_SURF_COUNT; surf++)
|
||||
shm_purge(shm, shm_cookie_csd(term, surf));
|
||||
|
||||
client_send_exit_code(client, exit_code);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue