mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-25 06:46:36 -04:00
wayland: remove all usages of wayl_terminal_from_surface()
Use the 'user data' pointer from the wayland surface instead.
This commit is contained in:
parent
43c0551806
commit
c917a74f48
3 changed files with 6 additions and 19 deletions
13
wayland.c
13
wayland.c
|
|
@ -1150,19 +1150,6 @@ wayl_reload_cursor_theme(struct wayland *wayl, struct terminal *term)
|
|||
return render_xcursor_set(term);
|
||||
}
|
||||
|
||||
struct terminal *
|
||||
wayl_terminal_from_surface(struct wayland *wayl, struct wl_surface *surface)
|
||||
{
|
||||
tll_foreach(wayl->terms, it) {
|
||||
if (term_surface_kind(it->item, surface) != TERM_SURF_NONE)
|
||||
return it->item;
|
||||
}
|
||||
|
||||
assert(false);
|
||||
LOG_WARN("surface %p doesn't map to a terminal", surface);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
wayl_flush(struct wayland *wayl)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue