aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-12 10:31:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-17 20:48:07 +0000
commit9d362158e3810bc0cbfe1990238e2abd3786e4c1 (patch)
tree67fac1573f773449a5a45b9f6bbce8c08ac37999 /wayland.c
parentwayland: add wayl_win_subsurface_new() and wayl_win_subsurface_destroy() (diff)
url-mode: convert struct wl_url to use wayl_win_subsurface_new()
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c5
1 files changed, 1 insertions, 4 deletions
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);
}