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

@ -2845,7 +2845,7 @@ term_surface_kind(const struct terminal *term, const struct wl_surface *surface)
return TERM_SURF_BUTTON_CLOSE;
else {
tll_foreach(term->window->urls, it) {
if (surface == it->item.surf)
if (surface == it->item.surf.surf)
return TERM_SURF_JUMP_LABEL;
}
return TERM_SURF_NONE;