From 9d362158e3810bc0cbfe1990238e2abd3786e4c1 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 12 Feb 2021 11:31:31 +0100 Subject: url-mode: convert struct wl_url to use wayl_win_subsurface_new() --- wayland.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'wayland.c') diff --git a/wayland.c b/wayland.c index 1dfd04ba..14cd0c85 100644 --- a/wayland.c +++ b/wayland.c @@ -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); } -- cgit v1.3