diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-07-18 15:57:11 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-07-18 15:57:11 +0000 |
| commit | 4d82e048606d325771fbfcd930060532aab4c940 (patch) | |
| tree | 568a446c4e669d508fe0cc4fae3847e34b5f1c9f /wayland.c | |
| parent | meson/pkgbuild: bump version to 1.8.1 (diff) | |
| parent | changelog: remove entries that are no longer relevant (diff) | |
Merge branch 'master' into releases/1.8
Diffstat (limited to 'wayland.c')
| -rw-r--r-- | wayland.c | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -26,6 +26,7 @@ #include "input.h" #include "render.h" #include "selection.h" +#include "shm.h" #include "util.h" #include "xmalloc.h" @@ -50,8 +51,11 @@ csd_instantiate(struct wl_window *win) static void csd_destroy(struct wl_window *win) { + struct terminal *term = win->term; + for (size_t i = 0; i < ALEN(win->csd.surface); i++) wayl_win_subsurface_destroy(&win->csd.surface[i]); + shm_purge(term->render.chains.csd); } static void @@ -1410,6 +1414,8 @@ wayl_win_destroy(struct wl_window *win) if (win == NULL) return; + struct terminal *term = win->term; + if (win->csd.move_timeout_fd != -1) close(win->csd.move_timeout_fd); @@ -1438,6 +1444,12 @@ wayl_win_destroy(struct wl_window *win) wl_surface_commit(win->search.surf); } + /* URLs */ + tll_foreach(win->urls, it) { + wl_surface_attach(it->item.surf.surf, NULL, 0, 0); + wl_surface_commit(it->item.surf.surf); + } + /* CSD */ for (size_t i = 0; i < ALEN(win->csd.surface); i++) { if (win->csd.surface[i].surf != NULL) { @@ -1465,6 +1477,13 @@ wayl_win_destroy(struct wl_window *win) wayl_win_subsurface_destroy(&win->scrollback_indicator); wayl_win_subsurface_destroy(&win->render_timer); + shm_purge(term->render.chains.search); + shm_purge(term->render.chains.scrollback_indicator); + shm_purge(term->render.chains.render_timer); + shm_purge(term->render.chains.grid); + shm_purge(term->render.chains.url); + shm_purge(term->render.chains.csd); + #if defined(HAVE_XDG_ACTIVATION) if (win->xdg_activation_token != NULL) xdg_activation_token_v1_destroy(win->xdg_activation_token); |
