diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-26 08:00:50 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-26 08:00:50 +0000 |
| commit | 2815c1c0764cbc79625aa9c6623601d2188e0500 (patch) | |
| tree | 5cb0e17ce9397f2c2b5ed265930cbca2b20ff987 /wayland.c | |
| parent | shm: add shm_cookie_scrollback_indicator() (diff) | |
wayland: add scrollback indicator surface + sub-surface to wl_window
Diffstat (limited to 'wayland.c')
| -rw-r--r-- | wayland.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1203,6 +1203,11 @@ wayl_win_destroy(struct wl_window *win) * nor mouse focus). */ + if (win->scrollback_indicator_surface != NULL) { + wl_surface_attach(win->scrollback_indicator_surface, NULL, 0, 0); + wl_surface_commit(win->scrollback_indicator_surface); + } + /* Scrollback search */ if (win->search_surface != NULL) { wl_surface_attach(win->search_surface, NULL, 0, 0); @@ -1227,6 +1232,10 @@ wayl_win_destroy(struct wl_window *win) tll_free(win->on_outputs); csd_destroy(win); + if (win->scrollback_indicator_sub_surface != NULL) + wl_subsurface_destroy(win->scrollback_indicator_sub_surface); + if (win->scrollback_indicator_surface != NULL) + wl_surface_destroy(win->scrollback_indicator_surface); if (win->search_sub_surface != NULL) wl_subsurface_destroy(win->search_sub_surface); if (win->search_surface != NULL) |
