diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-12 10:31:31 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-17 20:48:07 +0000 |
| commit | 9d362158e3810bc0cbfe1990238e2abd3786e4c1 (patch) | |
| tree | 67fac1573f773449a5a45b9f6bbce8c08ac37999 /wayland.c | |
| parent | wayland: 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.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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); } |
