url-mode: convert struct wl_url to use wayl_win_subsurface_new()

This commit is contained in:
Daniel Eklöf 2021-02-12 11:31:31 +01:00
parent bb4d9a5fd3
commit 9d362158e3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 8 additions and 46 deletions

View file

@ -1430,10 +1430,7 @@ wayl_win_destroy(struct wl_window *win)
tll_free(win->on_outputs);
tll_foreach(win->urls, it) {
if (it->item.sub_surf != NULL)
wl_subsurface_destroy(it->item.sub_surf);
if (it->item.surf != NULL)
wl_surface_destroy(it->item.surf);
wayl_win_subsurface_destroy(&it->item.surf);
tll_remove(win->urls, it);
}