mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-29 07:58:01 -04:00
search: use wayl_win_subsurface_new/destroy()
This commit is contained in:
parent
587f04f2e1
commit
e049124f6d
5 changed files with 20 additions and 34 deletions
12
wayland.c
12
wayland.c
|
|
@ -1415,9 +1415,9 @@ wayl_win_destroy(struct wl_window *win)
|
|||
}
|
||||
|
||||
/* Scrollback search */
|
||||
if (win->search_surface != NULL) {
|
||||
wl_surface_attach(win->search_surface, NULL, 0, 0);
|
||||
wl_surface_commit(win->search_surface);
|
||||
if (win->search_surface.surf != NULL) {
|
||||
wl_surface_attach(win->search_surface.surf, NULL, 0, 0);
|
||||
wl_surface_commit(win->search_surface.surf);
|
||||
}
|
||||
|
||||
/* CSD */
|
||||
|
|
@ -1443,6 +1443,8 @@ wayl_win_destroy(struct wl_window *win)
|
|||
}
|
||||
|
||||
csd_destroy(win);
|
||||
wayl_win_subsurface_destroy(&win->search_surface);
|
||||
|
||||
if (win->render_timer_sub_surface != NULL)
|
||||
wl_subsurface_destroy(win->render_timer_sub_surface);
|
||||
if (win->render_timer_surface != NULL)
|
||||
|
|
@ -1451,10 +1453,6 @@ wayl_win_destroy(struct wl_window *win)
|
|||
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)
|
||||
wl_surface_destroy(win->search_surface);
|
||||
if (win->frame_callback != NULL)
|
||||
wl_callback_destroy(win->frame_callback);
|
||||
if (win->xdg_toplevel_decoration != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue